pub struct NodeRecord {Show 14 fields
pub id: String,
pub name: String,
pub pubkey: String,
pub fingerprint: String,
pub projects: Vec<String>,
pub enrolled_at: String,
pub last_seen: Option<String>,
pub last_ts_ms: i64,
pub revoked_at: Option<String>,
pub host: Option<HostInfo>,
pub targets: Vec<TargetStatus>,
pub approval: String,
pub listen: Option<ListenInfo>,
pub last_polled: Option<String>,
}Fields§
§id: String§name: String§pubkey: String§fingerprint: String§projects: Vec<String>Projects this node may be sent. Set by the operator when minting the token; a node cannot widen it by declaring a target.
enrolled_at: String§last_seen: Option<String>§last_ts_ms: i64Highest request timestamp accepted. Persisted so a restart does not reopen the replay window.
revoked_at: Option<String>§host: Option<HostInfo>§targets: Vec<TargetStatus>§approval: Stringrequired holds every push to this node for a human (Phase 37); empty or
none pushes as soon as a node’s own config allows it.
listen: Option<ListenInfo>Set when the node listens and the hub dials it (Phase 34.1). Absent for a node that dials the hub.
last_polled: Option<String>When the hub last polled this node, for a listening node.
Trait Implementations§
Source§impl Clone for NodeRecord
impl Clone for NodeRecord
Source§fn clone(&self) -> NodeRecord
fn clone(&self) -> NodeRecord
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 NodeRecord
impl Debug for NodeRecord
Source§impl<'de> Deserialize<'de> for NodeRecord
impl<'de> Deserialize<'de> for NodeRecord
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 PartialEq for NodeRecord
impl PartialEq for NodeRecord
Source§impl Serialize for NodeRecord
impl Serialize for NodeRecord
impl StructuralPartialEq for NodeRecord
Auto Trait Implementations§
impl Freeze for NodeRecord
impl RefUnwindSafe for NodeRecord
impl Send for NodeRecord
impl Sync for NodeRecord
impl Unpin for NodeRecord
impl UnsafeUnpin for NodeRecord
impl UnwindSafe for NodeRecord
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