pub struct ManifestEnvelope {Show 19 fields
pub crypto_suite_id: u16,
pub protocol_version: String,
pub album_id: Option<String>,
pub file_id: String,
pub amk_version: u32,
pub ciphertext_hash: String,
pub plaintext_size: u64,
pub chunk_size: u32,
pub key_mode: String,
pub metadata_blob_hash: Option<String>,
pub derivative_role: Option<String>,
pub derivative_format: Option<String>,
pub created_by_user: String,
pub created_by_device: String,
pub client_version: String,
pub timestamp: String,
pub action: String,
pub prior_provenance_hash: Option<String>,
pub retention_until: Option<String>,
}Expand description
The server-visible mirror of the signed manifest’s envelope fields, declared
at POST /upload (owned by the provenance design doc). Opaque to this client
— the import pipeline builds and signs it; the SDK only carries it on the wire.
Fields§
§crypto_suite_id: u16Crypto suite the blob is sealed under.
protocol_version: StringProtocol date (YYYY-MM-DD).
album_id: Option<String>Optional album this blob belongs to.
file_id: StringThe asset id this blob belongs to (UUIDv7).
amk_version: u32AMK epoch the blob is sealed under.
ciphertext_hash: StringCiphertext content hash, lowercase hex — equals the top-level hash.
plaintext_size: u64Plaintext size in bytes.
chunk_size: u32STREAM plaintext chunk size.
key_mode: Stringderived | wrapped.
metadata_blob_hash: Option<String>Hash of the bundle’s metadata blob, when known.
derivative_role: Option<String>A derivative blob’s role (thumbnail | preview | embedding), from its signed
DerivativeManifest. Set on a derivative blob and on nothing else: the server
requires it there, refuses it elsewhere, and checks the pair against the closed
still-derivative format set.
derivative_format: Option<String>A derivative blob’s format (DerivativeManifest.format, e.g. image/jxl) — the same
value as the request’s content_type. Set exactly when Self::derivative_role is.
created_by_user: StringThe authoring user.
created_by_device: StringThe authoring device.
client_version: StringThe exact client build.
timestamp: StringRFC 3339 authoring timestamp.
action: StringLifecycle action (create for a fresh bundle).
prior_provenance_hash: Option<String>Prior provenance hash, for append-only chains.
retention_until: Option<String>Optional retention floor.
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<FfiManifestEnvelope> for ManifestEnvelope
impl From<FfiManifestEnvelope> for ManifestEnvelope
Source§fn from(env: FfiManifestEnvelope) -> Self
fn from(env: FfiManifestEnvelope) -> Self
Source§impl From<ManifestEnvelope> for FfiManifestEnvelope
impl From<ManifestEnvelope> for FfiManifestEnvelope
Source§fn from(env: ManifestEnvelope) -> Self
fn from(env: ManifestEnvelope) -> Self
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