pub struct ApplyRule {
pub action: String,
pub os: Option<OSRule>,
pub features: Option<BTreeMap<String, bool>>,
}
Expand description
一个规则
Fields§
§action: String
规则的类型,通常是 allow
或者 disallow
os: Option<OSRule>
规则需要满足的操作系统类型
features: Option<BTreeMap<String, bool>>
规则需要满足的一些特殊情况
但是 SCL 并没有使用这部分来做判断
Trait Implementations§
source§impl<'de> Deserialize<'de> for ApplyRule
impl<'de> Deserialize<'de> for ApplyRule
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
source§impl PartialEq<ApplyRule> for ApplyRule
impl PartialEq<ApplyRule> for ApplyRule
impl Eq for ApplyRule
impl StructuralEq for ApplyRule
impl StructuralPartialEq for ApplyRule
Auto Trait Implementations§
impl RefUnwindSafe for ApplyRule
impl Send for ApplyRule
impl Sync for ApplyRule
impl Unpin for ApplyRule
impl UnwindSafe for ApplyRule
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.