pub struct Node {Show 18 fields
pub node_id: String,
pub endpoint: String,
pub score: f64,
pub load: 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>,
pub transport: Vec<String>,
pub directory_observed_reachable: Option<bool>,
pub route_evidence: Option<String>,
pub routing_hint: Option<String>,
pub browser_usable: Option<bool>,
pub node_policy_manifest: Option<Value>,
pub dispatch_ticket_id_prefix: Option<String>,
}Expand description
A single IICP node returned by /v1/discover.
Fields§
§node_id: String§endpoint: String§score: f64§load: 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.
Canonical IICP-CX key advertised by discovery; public_key is a deprecated alias.
transport: Vec<String>#397 — transport protocols the node speaks (e.g. [“https”,“iicp-native”]). Empty/absent against a directory predating the field.
directory_observed_reachable: Option<bool>Additive routing-signal split from directory v1.10.50+.
route_evidence: Option<String>§routing_hint: Option<String>§browser_usable: Option<bool>§node_policy_manifest: Option<Value>Phase-1 compliance: public, self-attested node policy manifest.
dispatch_ticket_id_prefix: Option<String>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