pub struct RestoredAsset {
pub album_id: Uuid,
pub asset_id: Uuid,
pub plaintext: Vec<u8>,
pub metadata_blob: Vec<u8>,
pub create_metadata_blob: Vec<u8>,
pub provenance: Vec<ProvenanceRecord>,
pub receipts: Vec<u8>,
pub attestations: Vec<u8>,
}Expand description
A decrypted asset ready to write into a library (returned only on Commit).
Fields§
§album_id: UuidAlbum id.
asset_id: UuidAsset id.
plaintext: Vec<u8>Decrypted plaintext bytes.
metadata_blob: Vec<u8>The metadata blob (still encrypted; written verbatim).
create_metadata_blob: Vec<u8>The sealed metadata blob the chain’s create binds, when the artifact carried one that
answers the create’s metadata_blob_hash (empty otherwise: an artifact from before the
entry existed, an asset whose create binds its current blob, or a carried blob that did
not answer, which is dropped with a warning) — kept beside the chain on commit.
provenance: Vec<ProvenanceRecord>The provenance chain.
receipts: Vec<u8>The asset’s custody-receipt log ({uuid}.receipts.cbor bytes; empty if the artifact
carried none) — written back beside the provenance chain on commit.
attestations: Vec<u8>The asset’s signed storage-attestation log ({uuid}.attestations.cbor bytes; empty if
the artifact carried none) — written back beside the receipts on commit.
Trait Implementations§
Source§impl Clone for RestoredAsset
impl Clone for RestoredAsset
Source§fn clone(&self) -> RestoredAsset
fn clone(&self) -> RestoredAsset
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for RestoredAsset
impl RefUnwindSafe for RestoredAsset
impl Send for RestoredAsset
impl Sync for RestoredAsset
impl Unpin for RestoredAsset
impl UnsafeUnpin for RestoredAsset
impl UnwindSafe for RestoredAsset
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> 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