pub struct LocalZipSyncOptions { /* private fields */ }Expand description
Options for extracting a local ZIP file into an S3 prefix.
Implementations§
Source§impl LocalZipSyncOptions
impl LocalZipSyncOptions
Sourcepub fn new(source_zip: impl Into<PathBuf>, destination: S3Prefix) -> Self
pub fn new(source_zip: impl Into<PathBuf>, destination: S3Prefix) -> Self
Creates extract options for a local source ZIP file and destination prefix.
Sourcepub fn with_selection(self, selection: impl Into<UnzipSelection>) -> Self
pub fn with_selection(self, selection: impl Into<UnzipSelection>) -> Self
Sets ZIP entry selection patterns.
Sourcepub fn delete_extra_objects(self) -> Self
pub fn delete_extra_objects(self) -> Self
Deletes destination objects under the prefix that are not present in the ZIP.
This requires a non-empty destination prefix and cannot be combined with a non-empty selection.
Sourcepub fn with_cleanup(self, cleanup: DestinationCleanup) -> Self
pub fn with_cleanup(self, cleanup: DestinationCleanup) -> Self
Sets the destination cleanup policy.
Sourcepub fn force_hash_comparison(self) -> Self
pub fn force_hash_comparison(self) -> Self
Ignores any embedded catalog and hashes ZIP entries for comparison.
Sourcepub fn with_comparison_mode(self, comparison: ComparisonMode) -> Self
pub fn with_comparison_mode(self, comparison: ComparisonMode) -> Self
Sets the ZIP entry comparison policy.
Sourcepub fn conflict_policy(&self) -> ConflictPolicy
pub fn conflict_policy(&self) -> ConflictPolicy
Returns the conditional write conflict handling policy.
Sourcepub fn fail_on_conflict(self) -> Self
pub fn fail_on_conflict(self) -> Self
Returns an error after the first conditional write conflict is observed.
Sourcepub fn with_conflict_policy(self, conflict_policy: ConflictPolicy) -> Self
pub fn with_conflict_policy(self, conflict_policy: ConflictPolicy) -> Self
Sets the conditional write conflict handling policy.
Sourcepub fn without_operations(self) -> Self
pub fn without_operations(self) -> Self
Omits per-object operation records from the returned report.
Sourcepub fn with_concurrency(self, concurrency: usize) -> Self
pub fn with_concurrency(self, concurrency: usize) -> Self
Sets the maximum number of ZIP entries processed concurrently.
Sourcepub fn with_body_chunk_size(self, body_chunk_size: usize) -> Self
pub fn with_body_chunk_size(self, body_chunk_size: usize) -> Self
Sets the buffer size used when streaming entry bodies to S3.
Sourcepub fn with_pipe_capacity(self, pipe_capacity: usize) -> Self
pub fn with_pipe_capacity(self, pipe_capacity: usize) -> Self
Sets the in-memory pipe capacity between decompression and S3 upload.
Trait Implementations§
Source§impl Clone for LocalZipSyncOptions
impl Clone for LocalZipSyncOptions
Source§fn clone(&self) -> LocalZipSyncOptions
fn clone(&self) -> LocalZipSyncOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for LocalZipSyncOptions
impl RefUnwindSafe for LocalZipSyncOptions
impl Send for LocalZipSyncOptions
impl Sync for LocalZipSyncOptions
impl Unpin for LocalZipSyncOptions
impl UnsafeUnpin for LocalZipSyncOptions
impl UnwindSafe for LocalZipSyncOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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