#[non_exhaustive]pub struct Validation {
pub host: String,
pub outcome: Outcome,
pub failures: u32,
pub suspended: bool,
pub suspended_now: bool,
pub reinstated: bool,
pub rotated: bool,
}Expand description
The result of validating one host, with what the store now records.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.host: StringThe host.
outcome: OutcomeHow it came out.
failures: u32The consecutive failures now recorded (zero after a success; zero for a host with no namespace in the store, whose failure is not recorded).
suspended: boolWhether the namespace is suspended now.
suspended_now: boolWhether this validation suspended it.
reinstated: boolWhether this validation reinstated it.
rotated: boolWhether the document differs from the one stored before (a rotation or another change), and replaced it.
Implementations§
Source§impl Validation
impl Validation
Sourcepub fn failed(&self) -> bool
pub fn failed(&self) -> bool
Whether the outcome is Outcome::Invalid.
Trait Implementations§
Source§impl Clone for Validation
impl Clone for Validation
Source§impl Debug for Validation
impl Debug for Validation
impl Eq for Validation
Source§impl PartialEq for Validation
impl PartialEq for Validation
impl StructuralPartialEq for Validation
Auto Trait Implementations§
impl Forget for Validation
impl Freeze for Validation
impl Move for Validation
impl RefUnwindSafe for Validation
impl Send for Validation
impl Sync for Validation
impl Unpin for Validation
impl UnsafeUnpin for Validation
impl UnwindSafe for Validation
Blanket Implementations§
impl<T> Allocation for T
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.