pub struct ServiceNode {Show 13 fields
pub id: i64,
pub region_id: i64,
pub region_cluster_id: Option<i64>,
pub service_type: String,
pub node_id: String,
pub advertise_addr: String,
pub rpc_addr: Option<String>,
pub metadata: Option<Value>,
pub status: String,
pub last_heartbeat: Option<i64>,
pub is_active: bool,
pub mem_usage: Option<f64>,
pub sys_load: Option<i64>,
}Fields§
§id: i64§region_id: i64§region_cluster_id: Option<i64>§service_type: String§node_id: String§advertise_addr: String§rpc_addr: Option<String>§metadata: Option<Value>§status: String§last_heartbeat: Option<i64>§is_active: bool§mem_usage: Option<f64>§sys_load: Option<i64>Trait Implementations§
Source§impl Clone for ServiceNode
impl Clone for ServiceNode
Source§fn clone(&self) -> ServiceNode
fn clone(&self) -> ServiceNode
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 ServiceNode
impl Debug for ServiceNode
Source§impl<'de> Deserialize<'de> for ServiceNode
impl<'de> Deserialize<'de> for ServiceNode
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 ServiceNode
impl RefUnwindSafe for ServiceNode
impl Send for ServiceNode
impl Sync for ServiceNode
impl Unpin for ServiceNode
impl UnsafeUnpin for ServiceNode
impl UnwindSafe for ServiceNode
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