pub struct ImportConfig {
pub import_mode: ImportMode,
pub album: DefaultAlbumContext,
pub force_reimport_duplicates: bool,
pub upload_policy: UploadPolicy,
}Expand description
Configuration for an import run.
Fields§
§import_mode: ImportMode§album: DefaultAlbumContextWhere this import should land, as the inputs to the resolution order rather than
a raw destination id (SSoT: organization § The Default Album). The planner runs
resolve_default_album over it and records the fired rule on the plan; the
executor binds the library’s derived de facto album (rule 3) before running the same
single resolution. Default is unbound — “the user filed this nowhere”.
force_reimport_duplicates: boolIf true, import even if a file with the same SHA-256 hash already exists.
upload_policy: UploadPolicyThe per-device upload policy (staged uploads). Full (the
default) opens every bundle session eagerly; Staged opens them in tier
order gated by the connection class, and is mutually exclusive with a
streaming import — the planner rejects the combination at confirmation
(ImportActionPlan::confirm_upload_policy) and the streaming executor
refuses it by construction.
Trait Implementations§
Source§impl Clone for ImportConfig
impl Clone for ImportConfig
Source§fn clone(&self) -> ImportConfig
fn clone(&self) -> ImportConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ImportConfig
impl Debug for ImportConfig
Auto Trait Implementations§
impl Freeze for ImportConfig
impl RefUnwindSafe for ImportConfig
impl Send for ImportConfig
impl Sync for ImportConfig
impl Unpin for ImportConfig
impl UnsafeUnpin for ImportConfig
impl UnwindSafe for ImportConfig
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