pub struct ServiceInfo {
pub source: String,
pub version: String,
pub rack: String,
pub dc: String,
}Expand description
Engine-wide identifying strings included in every snapshot.
§Examples
use dynomite::stats::ServiceInfo;
let info = ServiceInfo {
source: "node-a".into(),
version: "0.0.1".into(),
rack: "r1".into(),
dc: "dc1".into(),
};
assert_eq!(info.source, "node-a");Fields§
§source: StringHostname or address of the local node.
version: StringEngine version reported as version in the JSON.
rack: StringLogical rack of the local node.
dc: StringLogical datacenter of the local node.
Trait Implementations§
Source§impl Clone for ServiceInfo
impl Clone for ServiceInfo
Source§fn clone(&self) -> ServiceInfo
fn clone(&self) -> ServiceInfo
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 ServiceInfo
impl Debug for ServiceInfo
Source§impl Default for ServiceInfo
impl Default for ServiceInfo
Source§fn default() -> ServiceInfo
fn default() -> ServiceInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ServiceInfo
impl RefUnwindSafe for ServiceInfo
impl Send for ServiceInfo
impl Sync for ServiceInfo
impl Unpin for ServiceInfo
impl UnsafeUnpin for ServiceInfo
impl UnwindSafe for ServiceInfo
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