pub struct OsInfo {
pub product_name: Option<String>,
pub release_label: Option<String>,
pub build_number: u32,
pub major_version: u32,
pub minor_version: u32,
}Expand description
OS details.
Fields§
§product_name: Option<String>Marketing name when available (for example: Windows 11 Pro).
release_label: Option<String>Semantic label derived from major/minor/build mapping.
build_number: u32Build number.
major_version: u32Major version.
minor_version: u32Minor version.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OsInfo
impl RefUnwindSafe for OsInfo
impl Send for OsInfo
impl Sync for OsInfo
impl Unpin for OsInfo
impl UnsafeUnpin for OsInfo
impl UnwindSafe for OsInfo
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