pub struct PolicyState {
pub etag: Option<String>,
pub filter_packs: BTreeMap<String, u64>,
pub verified_at: Option<String>,
pub last_refusal: Option<String>,
pub effective: Option<EffectiveState>,
pub effective_refusal: Option<String>,
pub effective_refused: Option<RefusalRecord>,
}Expand description
What the last verified bundle established.
Fields§
§etag: Option<String>§filter_packs: BTreeMap<String, u64>pack_id → version of the accepted filter packs.
verified_at: Option<String>§last_refusal: Option<String>Why the newest bundle was refused (the last good one stays).
effective: Option<EffectiveState>The effective policy in force (2.x, super::effective_policy).
effective_refusal: Option<String>Why the newest effective policy was refused (the last valid stays).
effective_refused: Option<RefusalRecord>That refusal as reported to Cloud (SERVER-B4), once per received version and digest.
Trait Implementations§
Source§impl Clone for PolicyState
impl Clone for PolicyState
Source§impl Debug for PolicyState
impl Debug for PolicyState
Source§impl Default for PolicyState
impl Default for PolicyState
Source§impl<'de> Deserialize<'de> for PolicyState
impl<'de> Deserialize<'de> for PolicyState
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 PolicyState
Source§impl PartialEq for PolicyState
impl PartialEq for PolicyState
Source§impl Serialize for PolicyState
impl Serialize for PolicyState
impl StructuralPartialEq for PolicyState
Auto Trait Implementations§
impl Forget for PolicyState
impl Freeze for PolicyState
impl Move for PolicyState
impl RefUnwindSafe for PolicyState
impl Send for PolicyState
impl Sync for PolicyState
impl Unpin for PolicyState
impl UnsafeUnpin for PolicyState
impl UnwindSafe for PolicyState
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<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,
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§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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more