pub struct Node {
pub node_id: String,
pub endpoint: String,
pub score: f64,
pub available: bool,
pub region: String,
pub models: Option<Vec<String>>,
pub cip_policy: Option<CipPolicy>,
pub health_label: Option<String>,
pub exposure_mode: Option<String>,
pub cx_public_key: Option<CxPublicKey>,
}Expand description
A single IICP node returned by /v1/discover.
Fields§
§node_id: String§endpoint: String§score: f64§available: bool§region: String§models: Option<Vec<String>>§cip_policy: Option<CipPolicy>§health_label: Option<String>ADR-044 composed health label (healthy/degraded/impaired/critical/offline).
None against a directory predating v1.10.0.
exposure_mode: Option<String>ADR-043 8-category network exposure classification. None if unset.
cx_public_key: Option<CxPublicKey>IICP-CX S.16 §3.1 — X25519 public key for E2E payload confidentiality. Present only when the node registered with cx_public_key (directory v1.10.7+).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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 Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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