pub struct OsRule {
pub name: Option<Os>,
pub version: Option<String>,
pub arch: Option<String>,
}Expand description
A rule which depends on what OS the user is on
Fields§
§name: Option<Os>The name of the OS
version: Option<String>The version of the OS. This is normally a RegEx
arch: Option<String>The architecture of the OS
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OsRule
impl<'de> Deserialize<'de> for OsRule
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 OsRule
impl RefUnwindSafe for OsRule
impl Send for OsRule
impl Sync for OsRule
impl Unpin for OsRule
impl UnsafeUnpin for OsRule
impl UnwindSafe for OsRule
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