pub struct ClusterNode {
pub node_id: String,
pub name: String,
pub endpoint: String,
pub region: String,
pub role: NodeRole,
pub health: HealthStatus,
pub shard_ranges: Vec<String>,
pub last_heartbeat: String,
pub capacity: NodeCapacity,
pub registered_at: String,
}Expand description
A registered datacenter cluster node
Fields§
§node_id: StringUnique node identifier
name: StringDisplay name
endpoint: StringNetwork endpoint (host:port or URL)
region: StringRegion / availability zone
role: NodeRoleNode role
health: HealthStatusCurrent health
shard_ranges: Vec<String>Shard assignments (hex prefixes this node owns)
last_heartbeat: StringLast heartbeat timestamp
capacity: NodeCapacityNode capacity metrics
registered_at: StringISO 8601 date the node was registered
Trait Implementations§
Source§impl Clone for ClusterNode
impl Clone for ClusterNode
Source§fn clone(&self) -> ClusterNode
fn clone(&self) -> ClusterNode
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 ClusterNode
impl Debug for ClusterNode
Source§impl<'de> Deserialize<'de> for ClusterNode
impl<'de> Deserialize<'de> for ClusterNode
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 ClusterNode
impl RefUnwindSafe for ClusterNode
impl Send for ClusterNode
impl Sync for ClusterNode
impl Unpin for ClusterNode
impl UnsafeUnpin for ClusterNode
impl UnwindSafe for ClusterNode
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