#[non_exhaustive]pub struct ConfigLayerSnapshot {
pub module_id: String,
pub project_id: Option<String>,
pub workspace_id: Option<String>,
pub layer: ConfigLayer,
pub path: Option<String>,
pub proposal_id: Option<String>,
pub bytes: Option<Vec<u8>>,
pub digest: Option<Digest>,
}Expand description
Immutable raw input, never an instruction to open a mutable path.
Exactly one of path and proposal_id identifies the input; the daemon
validates that location against the approved declaration. bytes and digest
are either both present or both absent (a missing file, not an empty file).
Bytes serialize as canonical RFC 4648 padded base64. Decoding checks both the
encoding and the SHA-256 of the exact bytes, including BOMs and line endings.
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.module_id: String§project_id: Option<String>§workspace_id: Option<String>§layer: ConfigLayer§path: Option<String>§proposal_id: Option<String>§bytes: Option<Vec<u8>>§digest: Option<Digest>Implementations§
Trait Implementations§
Source§impl Clone for ConfigLayerSnapshot
impl Clone for ConfigLayerSnapshot
Source§impl Debug for ConfigLayerSnapshot
impl Debug for ConfigLayerSnapshot
Source§impl<'de> Deserialize<'de> for ConfigLayerSnapshot
impl<'de> Deserialize<'de> for ConfigLayerSnapshot
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 ConfigLayerSnapshot
Source§impl PartialEq for ConfigLayerSnapshot
impl PartialEq for ConfigLayerSnapshot
Source§impl Serialize for ConfigLayerSnapshot
impl Serialize for ConfigLayerSnapshot
impl StructuralPartialEq for ConfigLayerSnapshot
Auto Trait Implementations§
impl Forget for ConfigLayerSnapshot
impl Freeze for ConfigLayerSnapshot
impl Move for ConfigLayerSnapshot
impl RefUnwindSafe for ConfigLayerSnapshot
impl Send for ConfigLayerSnapshot
impl Sync for ConfigLayerSnapshot
impl Unpin for ConfigLayerSnapshot
impl UnsafeUnpin for ConfigLayerSnapshot
impl UnwindSafe for ConfigLayerSnapshot
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