pub struct NamespaceManifestEnvelope {
pub kind: NamespaceManifestKind,
pub format_version: u32,
pub payload_checksum: String,
pub payload: NamespaceManifestPayload,
}Expand description
In-memory view of a namespace manifest envelope.
This struct is not the durable layout; durable bytes are produced only by
encode_namespace_manifest_json and validated only by
decode_namespace_manifest_json.
Fields§
§kind: NamespaceManifestKindDurable-family discriminator checked before payload decoding.
format_version: u32Family-local format version, which must equal NAMESPACE_MANIFEST_FORMAT_VERSION.
payload_checksum: StringDigest of the payload JSON exactly as stored in the durable document,
in sha256:<hex> form.
payload: NamespaceManifestPayloadDecoded file-set description protected by payload_checksum.
Implementations§
Source§impl NamespaceManifestEnvelope
impl NamespaceManifestEnvelope
Sourcepub fn from_payload(
payload: NamespaceManifestPayload,
) -> Result<Self, EnvelopeCodecError>
pub fn from_payload( payload: NamespaceManifestPayload, ) -> Result<Self, EnvelopeCodecError>
Builds a versioned envelope and computes its checksum from canonical payload JSON.
Construction fails when the payload cannot be encoded.
Trait Implementations§
Source§impl Clone for NamespaceManifestEnvelope
impl Clone for NamespaceManifestEnvelope
Source§fn clone(&self) -> NamespaceManifestEnvelope
fn clone(&self) -> NamespaceManifestEnvelope
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 NamespaceManifestEnvelope
impl Debug for NamespaceManifestEnvelope
Source§impl<'de> Deserialize<'de> for NamespaceManifestEnvelope
impl<'de> Deserialize<'de> for NamespaceManifestEnvelope
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 NamespaceManifestEnvelope
impl StructuralPartialEq for NamespaceManifestEnvelope
Auto Trait Implementations§
impl Freeze for NamespaceManifestEnvelope
impl RefUnwindSafe for NamespaceManifestEnvelope
impl Send for NamespaceManifestEnvelope
impl Sync for NamespaceManifestEnvelope
impl Unpin for NamespaceManifestEnvelope
impl UnsafeUnpin for NamespaceManifestEnvelope
impl UnwindSafe for NamespaceManifestEnvelope
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