pub struct GuardState {
pub active: bool,
pub reason: String,
}Expand description
The guard verdict.
Fields§
§active: booltrue when the rule is loaded.
reason: StringWhy the guard is not active; empty when it is.
Implementations§
Trait Implementations§
Source§impl Clone for GuardState
impl Clone for GuardState
Source§impl Debug for GuardState
impl Debug for GuardState
Source§impl<'de> Deserialize<'de> for GuardState
impl<'de> Deserialize<'de> for GuardState
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
impl Eq for GuardState
Source§impl PartialEq for GuardState
impl PartialEq for GuardState
Source§impl Serialize for GuardState
impl Serialize for GuardState
impl StructuralPartialEq for GuardState
Auto Trait Implementations§
impl Freeze for GuardState
impl RefUnwindSafe for GuardState
impl Send for GuardState
impl Sync for GuardState
impl Unpin for GuardState
impl UnsafeUnpin for GuardState
impl UnwindSafe for GuardState
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.