pub struct DeviceContext {
pub host_name: String,
pub platform: String,
pub os_version: Option<String>,
}Expand description
Device context attached to one Agent event.
Fields§
§host_name: StringHuman-readable host name.
platform: StringPlatform namespace such as linux, macos, or windows.
os_version: Option<String>Operating-system version when available.
Trait Implementations§
Source§impl Debug for DeviceContext
impl Debug for DeviceContext
Source§impl<'de> Deserialize<'de> for DeviceContext
impl<'de> Deserialize<'de> for DeviceContext
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 DeviceContext
impl RefUnwindSafe for DeviceContext
impl Send for DeviceContext
impl Sync for DeviceContext
impl Unpin for DeviceContext
impl UnsafeUnpin for DeviceContext
impl UnwindSafe for DeviceContext
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