pub struct DesiredConfig {
pub revision: u64,
pub values: BTreeMap<String, BTreeMap<String, Value>>,
}Expand description
A desired document for a config.v1 owner (§2.18). Its values stay JSON
until check_desired reads them.
Fields§
§revision: u64The author’s revision.
values: BTreeMap<String, BTreeMap<String, Value>>Values by group and parameter.
Trait Implementations§
Source§impl Clone for DesiredConfig
impl Clone for DesiredConfig
Source§impl Debug for DesiredConfig
impl Debug for DesiredConfig
Source§impl Default for DesiredConfig
impl Default for DesiredConfig
Source§impl<'de> Deserialize<'de> for DesiredConfig
impl<'de> Deserialize<'de> for DesiredConfig
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
Source§impl PartialEq for DesiredConfig
impl PartialEq for DesiredConfig
Source§impl Serialize for DesiredConfig
impl Serialize for DesiredConfig
impl StructuralPartialEq for DesiredConfig
Auto Trait Implementations§
impl Forget for DesiredConfig
impl Freeze for DesiredConfig
impl Move for DesiredConfig
impl RefUnwindSafe for DesiredConfig
impl Send for DesiredConfig
impl Sync for DesiredConfig
impl Unpin for DesiredConfig
impl UnsafeUnpin for DesiredConfigwhere
*const LeafNode<String, BTreeMap<String, Value>> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, BTreeMap<String, Value>)>>: UnsafeUnpin,
impl UnwindSafe for DesiredConfig
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<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