pub struct FileTask {
pub path: String,
pub watch_path: String,
pub checksum: String,
pub album_id: Option<String>,
pub album_name: Option<String>,
pub reassociate_only: bool,
pub skip_album: bool,
pub sidecar_path: Option<String>,
}Expand description
Represents a unit of work for the upload queue.
Fields§
§path: StringAbsolute local file path.
watch_path: StringAbsolute watch path prefix under which the file resides.
checksum: StringPrecomputed file SHA-1 checksum.
album_id: Option<String>Target Immich album identifier if already resolved.
album_name: Option<String>Mapped Immich album name.
reassociate_only: boolTrue if the asset is already on the server and only needs album addition.
skip_album: boolManual / ad-hoc uploads that must land in the library without being pinned to any album. Watch-folder syncs leave this false so the existing parent-dir-as-album fallback still applies.
sidecar_path: Option<String>Absolute path to an XMP sidecar file to attach during upload.
None when no companion sidecar exists or sidecar upload is disabled.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileTask
impl<'de> Deserialize<'de> for FileTask
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FileTask
impl RefUnwindSafe for FileTask
impl Send for FileTask
impl Sync for FileTask
impl Unpin for FileTask
impl UnsafeUnpin for FileTask
impl UnwindSafe for FileTask
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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