pub trait DropAdopter {
// Required methods
fn list_inbox(&self) -> Result<Vec<PendingDrop>, DropError>;
fn adopt(
&mut self,
drop: DropId,
album_id: Uuid,
) -> Result<AdoptedDrop, DropError>;
fn discard(&mut self, drop: DropId) -> Result<(), DropError>;
}Expand description
Reviews and adopts pending drops on a trusted (native) client — decapsulate K,
rewrap under the destination album’s AMK, author the sidecar, sign the create
manifest with key_mode = wrapped, and submit the atomic inbox→album promotion.
Required Methods§
Sourcefn list_inbox(&self) -> Result<Vec<PendingDrop>, DropError>
fn list_inbox(&self) -> Result<Vec<PendingDrop>, DropError>
The provisioning user’s pending drops.
Sourcefn adopt(
&mut self,
drop: DropId,
album_id: Uuid,
) -> Result<AdoptedDrop, DropError>
fn adopt( &mut self, drop: DropId, album_id: Uuid, ) -> Result<AdoptedDrop, DropError>
Adopt a drop into album_id in place (no byte re-upload). The drop becomes a
library asset — registered with its one-record provenance chain and sealed metadata
blob, exactly as an import registers one, including the import’s still pipeline
(header-derived content_type, pixel dimensions, LQIP, signed thumbnail derivatives)
— and the returned AdoptedDrop carries what publishing it needs: the signed
adopting create manifest (whose ciphertext_hash references the inbox blob), the
sealed metadata blob, and the provenance record.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".