#[non_exhaustive]pub struct ConfigView {
pub declaration_pending: Option<ConfigDeclarationPending>,
pub generation: u64,
pub attempt: Option<u64>,
pub project_id: Option<String>,
pub effective: Value,
pub sources: BTreeMap<String, Layer>,
pub layers: Vec<ConfigLayerSnapshot>,
pub status: ConfigStatus,
}Expand description
One immutable module/project view. Generation zero with unstamped status
represents current files before stamping, not an approved generation.
Unknown statuses or snapshot layers must not be activated.
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.declaration_pending: Option<ConfigDeclarationPending>Set only by clients from the config.get reply; never sent by the daemon in a view. Delivery state, not part of the approved configuration.
generation: u64§attempt: Option<u64>§project_id: Option<String>§effective: Value§sources: BTreeMap<String, Layer>JSON pointer to the source layer of each effective field.
layers: Vec<ConfigLayerSnapshot>§status: ConfigStatusImplementations§
Source§impl ConfigView
impl ConfigView
pub fn new( generation: u64, effective: Value, sources: BTreeMap<String, Layer>, layers: Vec<ConfigLayerSnapshot>, status: ConfigStatus, ) -> ConfigView
Trait Implementations§
Source§impl Clone for ConfigView
impl Clone for ConfigView
Source§fn clone(&self) -> ConfigView
fn clone(&self) -> ConfigView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigView
impl Debug for ConfigView
Source§impl<'de> Deserialize<'de> for ConfigView
impl<'de> Deserialize<'de> for ConfigView
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConfigView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConfigView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConfigView
impl PartialEq for ConfigView
Source§impl Serialize for ConfigView
impl Serialize for ConfigView
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ConfigView
Auto Trait Implementations§
impl Forget for ConfigView
impl Freeze for ConfigViewwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
*const LeafNode<String, Layer> is !null: Freeze,
PhantomData<Box<(String, Layer)>>: Freeze,
PhantomData<ConfigLayerSnapshot>: Freeze,
impl Move for ConfigView
impl RefUnwindSafe for ConfigView
impl Send for ConfigView
impl Sync for ConfigView
impl Unpin for ConfigView
impl UnsafeUnpin for ConfigViewwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const LeafNode<String, Layer> is !null: UnsafeUnpin,
PhantomData<Box<(String, Layer)>>: UnsafeUnpin,
PhantomData<ConfigLayerSnapshot>: UnsafeUnpin,
impl UnwindSafe for ConfigViewwhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BTreeMap<String, Layer>: UnwindSafe,
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