pub enum ImportOutcome {
Imported {
asset_id: Uuid,
derivatives: DerivativeStatus,
deferred_formats: u32,
},
DuplicateSkipped {
existing_uuid: String,
},
CorruptUnreadable(String),
CorruptTransfer,
PermissionDenied(String),
PartialStackImported {
imported: Vec<String>,
skipped: Vec<String>,
},
LivePhotoWithoutPair,
}Expand description
Outcome for a single imported file.
Variants§
Imported
The file was imported as a signed, encrypted, verifiable original.
derivatives says whether a thumbnail/preview could be generated alongside it. It is
not a success/failure flag: an asset whose format has no codec in this build is a
fully successful import that happens to be missing its derivative.
Fields
§
asset_id: UuidThe asset the file became — what a Move-mode caller releases the source against.
§
derivatives: DerivativeStatus§
deferred_formats: u32How many (tier, format) pairs the tier table commits to and this build cannot
encode. Orthogonal to derivatives: a Decoded asset with a renderable JXL
thumbnail still reports the AVIF delivery variant and WebP as deferred, and that
count is how the gap shrinks visibly as codecs land rather than silently.
DuplicateSkipped
CorruptUnreadable(String)
CorruptTransfer
PermissionDenied(String)
PartialStackImported
LivePhotoWithoutPair
Trait Implementations§
Source§impl Clone for ImportOutcome
impl Clone for ImportOutcome
Source§fn clone(&self) -> ImportOutcome
fn clone(&self) -> ImportOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ImportOutcome
impl RefUnwindSafe for ImportOutcome
impl Send for ImportOutcome
impl Sync for ImportOutcome
impl Unpin for ImportOutcome
impl UnsafeUnpin for ImportOutcome
impl UnwindSafe for ImportOutcome
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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