pub struct NodeInfo {
pub id: NodeId,
pub name: Option<String>,
pub available_storage: u64,
pub total_storage: u64,
pub addresses: Vec<String>,
pub version: String,
pub last_seen: i64,
}Expand description
Information about a node in the network
Fields§
§id: NodeIdNode’s unique identifier
name: Option<String>Human-readable name (optional)
available_storage: u64Available storage in bytes
total_storage: u64Total storage capacity in bytes
addresses: Vec<String>Node’s public addresses
version: StringSoftware version
last_seen: i64Last seen timestamp (Unix millis)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeInfo
impl<'de> Deserialize<'de> for NodeInfo
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
Auto Trait Implementations§
impl Freeze for NodeInfo
impl RefUnwindSafe for NodeInfo
impl Send for NodeInfo
impl Sync for NodeInfo
impl Unpin for NodeInfo
impl UnwindSafe for NodeInfo
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