pub struct OsRef(/* private fields */);Expand description
A known OS, as a machine’s os names it.
Implementations§
Trait Implementations§
impl Copy for OsRef
Source§impl<'de> Deserialize<'de> for OsRef
impl<'de> Deserialize<'de> for OsRef
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<OsRef, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<OsRef, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OsRef
Source§impl FromStr for OsRef
impl FromStr for OsRef
Source§fn from_str(text: &str) -> Result<OsRef, Error>
fn from_str(text: &str) -> Result<OsRef, Error>
The OS text names: <family>@<version>, or the family alone for its pinned default.
§Errors
Error::UnknownOs listing the known families, or Error::UnknownOsVersion listing
the family’s versions.
Source§impl JsonSchema for OsRef
impl JsonSchema for OsRef
Source§fn json_schema(_: &mut SchemaGenerator) -> Schema
fn json_schema(_: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for OsRef
Auto Trait Implementations§
impl Freeze for OsRef
impl RefUnwindSafe for OsRef
impl Send for OsRef
impl Sync for OsRef
impl Unpin for OsRef
impl UnsafeUnpin for OsRef
impl UnwindSafe for OsRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.