#[non_exhaustive]pub struct ConfigView {
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.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, ) -> Self
Trait Implementations§
Source§impl Clone for ConfigView
impl Clone for ConfigView
Source§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<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 ConfigView
impl PartialEq for ConfigView
Source§impl Serialize for ConfigView
impl Serialize for ConfigView
impl StructuralPartialEq for ConfigView
Auto Trait Implementations§
impl Forget for ConfigView
impl Freeze for ConfigView
impl Move for ConfigView
impl RefUnwindSafe for ConfigView
impl Send for ConfigView
impl Sync for ConfigView
impl Unpin for ConfigView
impl UnsafeUnpin for ConfigView
impl UnwindSafe for ConfigView
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