Struct ImportCandidate
pub struct ImportCandidate {
pub source_paths: Vec<PathBuf>,
pub detected_type: AssetType,
pub stack_type: Option<StackType>,
pub detection_method: Option<DetectionMethod>,
pub detection_key: Option<String>,
pub members: Vec<(PathBuf, MemberRole)>,
}Expand description
One logical “unit” of import — either a standalone file or a set of related files (RAW+JPEG pair, Live Photo HEIC+MOV, etc.).
Fields§
§source_paths: Vec<PathBuf>All source file paths belonging to this candidate.
detected_type: AssetTypeDetected media type (of the primary member).
stack_type: Option<StackType>Stack type, present when the candidate forms a multi-file stack.
detection_method: Option<DetectionMethod>How the stack relationship was detected.
detection_key: Option<String>Unique key for this stack group within its source directory.
members: Vec<(PathBuf, MemberRole)>Ordered list of (path, member role) for every file in the candidate.
Implementations§
§impl ImportCandidate
impl ImportCandidate
pub fn primary_path(&self) -> &PathBuf
pub fn primary_path(&self) -> &PathBuf
Returns the primary path (first Primary role member, or source_paths[0]).
Trait Implementations§
§impl Clone for ImportCandidate
impl Clone for ImportCandidate
§fn clone(&self) -> ImportCandidate
fn clone(&self) -> ImportCandidate
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 ImportCandidate
impl RefUnwindSafe for ImportCandidate
impl Send for ImportCandidate
impl Sync for ImportCandidate
impl Unpin for ImportCandidate
impl UnsafeUnpin for ImportCandidate
impl UnwindSafe for ImportCandidate
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