pub struct UploadWorkerContext {
pub client: Arc<SmugMugClient>,
pub album_uri: String,
pub album_key: String,
pub series: Option<Arc<AlbumSeries<ClientAlbumSeries>>>,
pub hash_store: Arc<Mutex<HashStore>>,
pub remote_md5s: Option<Arc<HashMap<String, String>>>,
pub remote_images: Option<Arc<HashMap<String, AlbumImage>>>,
pub dry_run: bool,
pub no_cache: bool,
pub retry_attempts: u32,
pub render_raw: bool,
pub skip_raw_files: Arc<AtomicBool>,
}Fields§
§client: Arc<SmugMugClient>§album_uri: StringTarget album for new images, unless series is set.
album_key: String§series: Option<Arc<AlbumSeries<ClientAlbumSeries>>>When set, each new image claims room in this album series instead of
going to album_uri (see album_series).
hash_store: Arc<Mutex<HashStore>>§remote_md5s: Option<Arc<HashMap<String, String>>>§remote_images: Option<Arc<HashMap<String, AlbumImage>>>Existing images already in the target album, keyed by filename. Used to decide, per file, whether to skip (content unchanged), replace (same filename, different content) or create (new filename).
dry_run: bool§no_cache: bool§retry_attempts: u32§render_raw: boolUpload RAW files as JPEGs rendered from them (see crate::raw)
instead of as originals.
skip_raw_files: Arc<AtomicBool>Auto Trait Implementations§
impl !RefUnwindSafe for UploadWorkerContext
impl !UnwindSafe for UploadWorkerContext
impl Freeze for UploadWorkerContext
impl Send for UploadWorkerContext
impl Sync for UploadWorkerContext
impl Unpin for UploadWorkerContext
impl UnsafeUnpin for UploadWorkerContext
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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