pub struct ConfigStatus {
pub instance: String,
pub revision: u64,
pub confirm_floor_s: u64,
pub pending: Option<Pending>,
pub last_change: Option<LastChange>,
pub desired: Option<DesiredReport>,
pub values: BTreeMap<String, BTreeMap<String, Value>>,
}Expand description
The compact status, state/status: the view’s projection (§2.19).
Fields§
§instance: StringThe instance id.
revision: u64The revision.
confirm_floor_s: u64The floor, in seconds.
pending: Option<Pending>The pending change, if any.
last_change: Option<LastChange>The last change, if any.
desired: Option<DesiredReport>The desired report, if any.
values: BTreeMap<String, BTreeMap<String, Value>>The values by group and name: no sensitive or unknown value, and no group left without one.
Implementations§
Source§impl ConfigStatus
impl ConfigStatus
Sourcepub fn of(view: &ConfigView) -> Self
pub fn of(view: &ConfigView) -> Self
The status a view projects to (§2.19).
Trait Implementations§
Source§impl Clone for ConfigStatus
impl Clone for ConfigStatus
Source§impl Debug for ConfigStatus
impl Debug for ConfigStatus
Source§impl<'de> Deserialize<'de> for ConfigStatus
impl<'de> Deserialize<'de> for ConfigStatus
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 ConfigStatus
Source§impl PartialEq for ConfigStatus
impl PartialEq for ConfigStatus
Source§impl Serialize for ConfigStatus
impl Serialize for ConfigStatus
impl StructuralPartialEq for ConfigStatus
Auto Trait Implementations§
impl Forget for ConfigStatus
impl Freeze for ConfigStatus
impl Move for ConfigStatus
impl RefUnwindSafe for ConfigStatus
impl Send for ConfigStatus
impl Sync for ConfigStatus
impl Unpin for ConfigStatus
impl UnsafeUnpin for ConfigStatuswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, BTreeMap<String, Value>> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, BTreeMap<String, Value>)>>: UnsafeUnpin,
impl UnwindSafe for ConfigStatus
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§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