pub struct AdoptedDrop {
pub manifest: AssetManifest,
pub metadata_blob: Vec<u8>,
pub record: ProvenanceRecord,
pub derivatives: DerivativeStatus,
pub deferred_formats: u32,
}Expand description
What adopting a drop produced: the asset it became, and the index tier a push publishes.
The drop’s ciphertext is not here — the server already holds it as the inbox blob the
manifest’s ciphertext_hash names, and adoption promotes it in place. What the server does
not hold until the owner uploads it is the index tier: the provenance record (the
asset’s chain head) and the sealed metadata blob. Both are un-regenerable — the blob’s nonce
is folded into its key — so they are handed back rather than left for a caller to rebuild.
Fields§
§manifest: AssetManifestThe signed adopting create manifest (key_mode = wrapped). Its file_id is the new
asset’s id.
metadata_blob: Vec<u8>The exact sealed metadata-blob wire bytes manifest.core.metadata_blob_hash commits
to.
record: ProvenanceRecordThe asset’s one provenance record — the create that heads its chain.
derivatives: DerivativeStatusWhether the import still pipeline produced thumbnail derivatives, dimensions and an LQIP for the adopted bytes, and if not, why — the same report an import returns. Adoption never fails over unreadable pixels, so this is a report, not a rejection.
Native-only: the pipeline lives in lifecycle, which the WASM sealing build omits,
and only a native client adopts.
deferred_formats: u32How many (tier, format) pairs the tier table commits to and this build cannot
encode; zero when the still did not decode, because nothing was attempted.
Implementations§
Source§impl AdoptedDrop
impl AdoptedDrop
Trait Implementations§
Source§impl Clone for AdoptedDrop
impl Clone for AdoptedDrop
Source§fn clone(&self) -> AdoptedDrop
fn clone(&self) -> AdoptedDrop
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 AdoptedDrop
impl RefUnwindSafe for AdoptedDrop
impl Send for AdoptedDrop
impl Sync for AdoptedDrop
impl Unpin for AdoptedDrop
impl UnsafeUnpin for AdoptedDrop
impl UnwindSafe for AdoptedDrop
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