pub struct RegisteredNode {
pub node_id: String,
pub pubkey: [u8; 32],
pub label: Option<String>,
pub registered_at: DateTime<Utc>,
}Expand description
A registered node: node-id, public key, optional friendly label, and when it was added to the registry.
Fields§
§node_id: StringStable identifier derived from the pubkey. Hex-encoded prefix
of SHA-256(pubkey). See node_id_from_pubkey.
pubkey: [u8; 32]Ed25519 public key (32 bytes).
label: Option<String>Optional human-readable label, e.g. "esp32-workbench" or
"daemon-wsl". Authoritative label lives under
substrate/<node-id>/meta/label; this field is a convenience
copy so code paths that don’t touch substrate can still render
a friendly name.
registered_at: DateTime<Utc>When the node was registered with the kernel.
Trait Implementations§
Source§impl Clone for RegisteredNode
impl Clone for RegisteredNode
Auto Trait Implementations§
impl Freeze for RegisteredNode
impl RefUnwindSafe for RegisteredNode
impl Send for RegisteredNode
impl Sync for RegisteredNode
impl Unpin for RegisteredNode
impl UnsafeUnpin for RegisteredNode
impl UnwindSafe for RegisteredNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more