pub struct GuardRuleInfo {
pub name: String,
pub custom_message: Option<String>,
}Expand description
A Guard rule declared in a rule file, with the metadata the rule listing shows.
Fields§
§name: String§custom_message: Option<String>The first <<message>> the rule carries, which is the best available
one-line description of what the rule checks.
Trait Implementations§
Source§impl Clone for GuardRuleInfo
impl Clone for GuardRuleInfo
Source§impl Debug for GuardRuleInfo
impl Debug for GuardRuleInfo
impl Eq for GuardRuleInfo
Source§impl PartialEq for GuardRuleInfo
impl PartialEq for GuardRuleInfo
impl StructuralPartialEq for GuardRuleInfo
Auto Trait Implementations§
impl Freeze for GuardRuleInfo
impl RefUnwindSafe for GuardRuleInfo
impl Send for GuardRuleInfo
impl Sync for GuardRuleInfo
impl Unpin for GuardRuleInfo
impl UnsafeUnpin for GuardRuleInfo
impl UnwindSafe for GuardRuleInfo
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,
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.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.