pub struct ManifestEnvelope {Show 20 fields
pub crypto_suite_id: ManifestEnvelopeCryptoSuiteId,
pub protocol_version: ManifestEnvelopeProtocolVersion,
pub album_id: Nullable<ManifestEnvelopeAlbumId>,
pub file_id: ManifestEnvelopeFileId,
pub amk_version: ManifestEnvelopeAmkVersion,
pub ciphertext_hash: ManifestEnvelopeCiphertextHash,
pub plaintext_size: ManifestEnvelopePlaintextSize,
pub chunk_size: ManifestEnvelopeChunkSize,
pub key_mode: ManifestEnvelopeKeyMode,
pub metadata_blob_hash: Nullable<ManifestEnvelopeMetadataBlobHash>,
pub original_blob_hash: Nullable<ManifestEnvelopeOriginalBlobHash>,
pub derivative_role: Nullable<ManifestEnvelopeDerivativeRole>,
pub derivative_format: Nullable<ManifestEnvelopeDerivativeFormat>,
pub created_by_user: ManifestEnvelopeCreatedByUser,
pub created_by_device: ManifestEnvelopeCreatedByDevice,
pub client_version: ManifestEnvelopeClientVersion,
pub timestamp: ManifestEnvelopeTimestamp,
pub action: ManifestEnvelopeAction,
pub prior_provenance_hash: Nullable<ManifestEnvelopePriorProvenanceHash>,
pub retention_until: Nullable<ManifestEnvelopeRetentionUntil>,
}Expand description
The server-visible mirror of the signed manifest’s envelope fields, as declared at
POST /v1/upload.
Strict (deny_unknown_fields) like the rest of the transport JSON. The Postel asymmetry
the design draws — tolerant inside documents that outlive us, strict on the wire we own —
puts unknown-key tolerance in the signed CBOR interiors, never in this JSON projection.
Fields§
§crypto_suite_id: ManifestEnvelopeCryptoSuiteId§protocol_version: ManifestEnvelopeProtocolVersion§album_id: Nullable<ManifestEnvelopeAlbumId>§file_id: ManifestEnvelopeFileId§amk_version: ManifestEnvelopeAmkVersion§ciphertext_hash: ManifestEnvelopeCiphertextHash§plaintext_size: ManifestEnvelopePlaintextSize§chunk_size: ManifestEnvelopeChunkSize§key_mode: ManifestEnvelopeKeyMode§metadata_blob_hash: Nullable<ManifestEnvelopeMetadataBlobHash>§original_blob_hash: Nullable<ManifestEnvelopeOriginalBlobHash>§derivative_role: Nullable<ManifestEnvelopeDerivativeRole>§derivative_format: Nullable<ManifestEnvelopeDerivativeFormat>§created_by_user: ManifestEnvelopeCreatedByUser§created_by_device: ManifestEnvelopeCreatedByDevice§client_version: ManifestEnvelopeClientVersion§timestamp: ManifestEnvelopeTimestamp§action: ManifestEnvelopeAction§prior_provenance_hash: Nullable<ManifestEnvelopePriorProvenanceHash>§retention_until: Nullable<ManifestEnvelopeRetentionUntil>Implementations§
Source§impl ManifestEnvelope
impl ManifestEnvelope
Sourcepub fn with_album_id(
self,
value: impl Into<Nullable<ManifestEnvelopeAlbumId>>,
) -> Self
pub fn with_album_id( self, value: impl Into<Nullable<ManifestEnvelopeAlbumId>>, ) -> Self
Set the album_id member: a value, or Nullable::Null for an explicit null.
Sourcepub fn with_album_id_null(self) -> Self
pub fn with_album_id_null(self) -> Self
Set the album_id member to an explicit null.
Sourcepub fn with_metadata_blob_hash(
self,
value: impl Into<Nullable<ManifestEnvelopeMetadataBlobHash>>,
) -> Self
pub fn with_metadata_blob_hash( self, value: impl Into<Nullable<ManifestEnvelopeMetadataBlobHash>>, ) -> Self
Set the metadata_blob_hash member: a value, or Nullable::Null for an explicit null.
Sourcepub fn with_metadata_blob_hash_null(self) -> Self
pub fn with_metadata_blob_hash_null(self) -> Self
Set the metadata_blob_hash member to an explicit null.
Sourcepub fn with_original_blob_hash(
self,
value: impl Into<Nullable<ManifestEnvelopeOriginalBlobHash>>,
) -> Self
pub fn with_original_blob_hash( self, value: impl Into<Nullable<ManifestEnvelopeOriginalBlobHash>>, ) -> Self
Set the original_blob_hash member: a value, or Nullable::Null for an explicit null.
Sourcepub fn with_original_blob_hash_null(self) -> Self
pub fn with_original_blob_hash_null(self) -> Self
Set the original_blob_hash member to an explicit null.
Sourcepub fn with_derivative_role(
self,
value: impl Into<Nullable<ManifestEnvelopeDerivativeRole>>,
) -> Self
pub fn with_derivative_role( self, value: impl Into<Nullable<ManifestEnvelopeDerivativeRole>>, ) -> Self
Set the derivative_role member: a value, or Nullable::Null for an explicit null.
Sourcepub fn with_derivative_role_null(self) -> Self
pub fn with_derivative_role_null(self) -> Self
Set the derivative_role member to an explicit null.
Sourcepub fn with_derivative_format(
self,
value: impl Into<Nullable<ManifestEnvelopeDerivativeFormat>>,
) -> Self
pub fn with_derivative_format( self, value: impl Into<Nullable<ManifestEnvelopeDerivativeFormat>>, ) -> Self
Set the derivative_format member: a value, or Nullable::Null for an explicit null.
Sourcepub fn with_derivative_format_null(self) -> Self
pub fn with_derivative_format_null(self) -> Self
Set the derivative_format member to an explicit null.
Sourcepub fn with_prior_provenance_hash(
self,
value: impl Into<Nullable<ManifestEnvelopePriorProvenanceHash>>,
) -> Self
pub fn with_prior_provenance_hash( self, value: impl Into<Nullable<ManifestEnvelopePriorProvenanceHash>>, ) -> Self
Set the prior_provenance_hash member: a value, or Nullable::Null for an explicit null.
Sourcepub fn with_prior_provenance_hash_null(self) -> Self
pub fn with_prior_provenance_hash_null(self) -> Self
Set the prior_provenance_hash member to an explicit null.
Sourcepub fn with_retention_until(
self,
value: impl Into<Nullable<ManifestEnvelopeRetentionUntil>>,
) -> Self
pub fn with_retention_until( self, value: impl Into<Nullable<ManifestEnvelopeRetentionUntil>>, ) -> Self
Set the retention_until member: a value, or Nullable::Null for an explicit null.
Sourcepub fn with_retention_until_null(self) -> Self
pub fn with_retention_until_null(self) -> Self
Set the retention_until member to an explicit null.
Trait Implementations§
Source§impl Clone for ManifestEnvelope
impl Clone for ManifestEnvelope
Source§fn clone(&self) -> ManifestEnvelope
fn clone(&self) -> ManifestEnvelope
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ManifestEnvelope
impl Debug for ManifestEnvelope
Source§impl<'de> Deserialize<'de> for ManifestEnvelope
impl<'de> Deserialize<'de> for ManifestEnvelope
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>,
Source§impl From<ManifestEnvelopeRequired> for ManifestEnvelope
impl From<ManifestEnvelopeRequired> for ManifestEnvelope
Source§fn from(required: ManifestEnvelopeRequired) -> Self
fn from(required: ManifestEnvelopeRequired) -> Self
A ManifestEnvelope holding the members ManifestEnvelopeRequired holds, and every optional member unset, a member with a schema default included.
Source§impl PartialEq for ManifestEnvelope
impl PartialEq for ManifestEnvelope
Source§fn eq(&self, other: &ManifestEnvelope) -> bool
fn eq(&self, other: &ManifestEnvelope) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ManifestEnvelope
impl Serialize for ManifestEnvelope
impl StructuralPartialEq for ManifestEnvelope
Auto Trait Implementations§
impl Freeze for ManifestEnvelope
impl RefUnwindSafe for ManifestEnvelope
impl Send for ManifestEnvelope
impl Sync for ManifestEnvelope
impl Unpin for ManifestEnvelope
impl UnsafeUnpin for ManifestEnvelope
impl UnwindSafe for ManifestEnvelope
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
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> CompatExt for T
impl<T> CompatExt for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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