pub struct SystemIdentity {
pub name: String,
pub hostname: String,
pub os_name: String,
pub os_version: String,
pub kernel_name: String,
pub kernel_release: String,
pub architecture: String,
}Expand description
Stable identity fields. Each field is transported separately so the TUI can degrade by width priority without parsing a combined string.
Fields§
§name: StringUser-facing system name (typically a configured alias).
hostname: StringNetwork hostname as reported by the operating system.
os_name: StringOperating-system family name (e.g. "linux", "macos").
os_version: StringOperating-system version string.
kernel_name: StringKernel name (e.g. "Linux", "Darwin").
kernel_release: StringKernel release string.
architecture: StringTarget architecture (e.g. "x86_64", "aarch64").
Trait Implementations§
Source§impl Clone for SystemIdentity
impl Clone for SystemIdentity
Source§fn clone(&self) -> SystemIdentity
fn clone(&self) -> SystemIdentity
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 SystemIdentity
impl Debug for SystemIdentity
Source§impl<'de> Deserialize<'de> for SystemIdentity
impl<'de> Deserialize<'de> for SystemIdentity
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
impl Eq for SystemIdentity
Source§impl PartialEq for SystemIdentity
impl PartialEq for SystemIdentity
Source§impl Serialize for SystemIdentity
impl Serialize for SystemIdentity
impl StructuralPartialEq for SystemIdentity
Auto Trait Implementations§
impl Freeze for SystemIdentity
impl RefUnwindSafe for SystemIdentity
impl Send for SystemIdentity
impl Sync for SystemIdentity
impl Unpin for SystemIdentity
impl UnsafeUnpin for SystemIdentity
impl UnwindSafe for SystemIdentity
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