pub struct PublicIdentity {
pub node_id: NodeId,
pub public_key: String,
pub display_name: String,
pub instance_id: InstanceId,
}Expand description
What everyone may know about this node: the id, the public key, a display name and this run’s instance. Everything an advertisement carries; nothing that signs.
Fields§
§node_id: NodeIdThe node id: a digest of the public key.
public_key: StringThe Ed25519 public key, 64 hex characters. Whoever holds the matching secret is this node; there is no other proof.
display_name: StringA human name for the node, from the identity file; defaults to the first eight characters of the node id. Presentation only — never used for trust.
instance_id: InstanceIdThis run of the node.
Trait Implementations§
Source§impl Clone for PublicIdentity
impl Clone for PublicIdentity
Source§fn clone(&self) -> PublicIdentity
fn clone(&self) -> PublicIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PublicIdentity
impl Debug for PublicIdentity
Source§impl<'de> Deserialize<'de> for PublicIdentity
impl<'de> Deserialize<'de> for PublicIdentity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for PublicIdentity
impl JsonSchema for PublicIdentity
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for PublicIdentity
impl RefUnwindSafe for PublicIdentity
impl Send for PublicIdentity
impl Sync for PublicIdentity
impl Unpin for PublicIdentity
impl UnsafeUnpin for PublicIdentity
impl UnwindSafe for PublicIdentity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more