pub struct HostIdentity {
pub hostname: String,
pub operating_system: String,
pub kernel_release: String,
pub architecture: String,
}Expand description
Stable host identity fields collected from the operating system.
Fields§
§hostname: StringReported hostname.
operating_system: StringOperating-system family reported by uname -s.
kernel_release: StringKernel release reported by uname -r.
architecture: StringMachine architecture reported by uname -m.
Trait Implementations§
Source§impl Clone for HostIdentity
impl Clone for HostIdentity
Source§fn clone(&self) -> HostIdentity
fn clone(&self) -> HostIdentity
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 HostIdentity
impl Debug for HostIdentity
Source§impl<'de> Deserialize<'de> for HostIdentity
impl<'de> Deserialize<'de> for HostIdentity
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
Source§impl PartialEq for HostIdentity
impl PartialEq for HostIdentity
Source§fn eq(&self, other: &HostIdentity) -> bool
fn eq(&self, other: &HostIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HostIdentity
impl Serialize for HostIdentity
impl Eq for HostIdentity
impl StructuralPartialEq for HostIdentity
Auto Trait Implementations§
impl Freeze for HostIdentity
impl RefUnwindSafe for HostIdentity
impl Send for HostIdentity
impl Sync for HostIdentity
impl Unpin for HostIdentity
impl UnsafeUnpin for HostIdentity
impl UnwindSafe for HostIdentity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.