pub struct LibraryRule {
pub action: RuleAction,
pub os: Option<OsRule>,
pub features: Option<Value>,
}Fields§
§action: RuleAction§os: Option<OsRule>§features: Option<Value>Feature flags (e.g. has_custom_resolution). We don’t evaluate them;
rules that carry features are skipped conservatively.
Trait Implementations§
Source§impl Clone for LibraryRule
impl Clone for LibraryRule
Source§fn clone(&self) -> LibraryRule
fn clone(&self) -> LibraryRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LibraryRule
impl Debug for LibraryRule
Source§impl<'de> Deserialize<'de> for LibraryRule
impl<'de> Deserialize<'de> for LibraryRule
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 LibraryRule
impl RefUnwindSafe for LibraryRule
impl Send for LibraryRule
impl Sync for LibraryRule
impl Unpin for LibraryRule
impl UnsafeUnpin for LibraryRule
impl UnwindSafe for LibraryRule
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