pub struct OsRelease {
pub bug_report_url: String,
pub home_url: String,
pub id_like: String,
pub id: String,
pub name: String,
pub pretty_name: String,
pub privacy_policy_url: String,
pub support_url: String,
pub version_codename: String,
pub version_id: String,
pub version: String,
pub extra: BTreeMap<String, String>,
}Expand description
Contents of the /etc/os-release file, as a data structure.
Fields§
§bug_report_url: StringThe URL where bugs should be reported for this OS.
home_url: StringThe homepage of this OS.
id_like: StringIdentifier of the original upstream OS that this release is a derivative of.
IE: debian
id: StringAn identifier which describes this release, such as ubuntu.
IE: ubuntu
name: StringThe name of this release, without the version string.
IE: Ubuntu
pretty_name: StringThe name of this release, with th eversion stirng.
IE: Ubuntu 18.04 LTS
privacy_policy_url: StringThe URL describing this OS’s privacy policy.
support_url: StringThe URL for seeking support with this OS release.
version_codename: StringThe codename of this version.
IE: bionic
version_id: StringThe version of this OS release, with additional details about the release.
IE: 18.04 LTS (Bionic Beaver)
version: StringThe version of this OS release.
IE: 18.04
extra: BTreeMap<String, String>Additional keys not covered by the API.
Implementations§
Trait Implementations§
Source§impl FromIterator<String> for OsRelease
impl FromIterator<String> for OsRelease
impl StructuralPartialEq for OsRelease
Auto Trait Implementations§
impl Freeze for OsRelease
impl RefUnwindSafe for OsRelease
impl Send for OsRelease
impl Sync for OsRelease
impl Unpin for OsRelease
impl UnwindSafe for OsRelease
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