pub struct EnvironmentInfo {
pub os_name: String,
pub os_version: String,
pub architecture: String,
pub runtime: RuntimeEnvironmentSummary,
pub is_containerized: bool,
pub is_virtualized: bool,
pub cloud_provider: Option<String>,
pub licenz_version: String,
}Expand description
Environment information
Fields§
§os_name: StringOperating system name
os_version: StringOperating system version
architecture: StringCPU architecture
runtime: RuntimeEnvironmentSummaryRuntime environment detection
is_containerized: boolIs this a containerized environment?
is_virtualized: boolIs this a virtualized environment?
cloud_provider: Option<String>Detected cloud provider (if any)
licenz_version: StringLicenz library version
Implementations§
Trait Implementations§
Source§impl Clone for EnvironmentInfo
impl Clone for EnvironmentInfo
Source§fn clone(&self) -> EnvironmentInfo
fn clone(&self) -> EnvironmentInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 EnvironmentInfo
impl Debug for EnvironmentInfo
Source§impl<'de> Deserialize<'de> for EnvironmentInfo
impl<'de> Deserialize<'de> for EnvironmentInfo
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 EnvironmentInfo
impl RefUnwindSafe for EnvironmentInfo
impl Send for EnvironmentInfo
impl Sync for EnvironmentInfo
impl Unpin for EnvironmentInfo
impl UnsafeUnpin for EnvironmentInfo
impl UnwindSafe for EnvironmentInfo
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