pub struct Settings {
pub part_size: usize,
pub timeout: Duration,
pub data_timeout: Duration,
pub max_multipart_upload_parts: usize,
pub max_delete_objects: usize,
}Fields§
§part_size: usizeSize of multipart upload part.
Note: On AWS S3 the part size is must be between 5MiB to 5GiB
timeout: DurationTimeout for non data related operations.
data_timeout: DurationTimeout for data upload/download operations.
max_multipart_upload_parts: usizeMaximum number of multipart uploads (for calculations of S3::max_upload_size()) (AWS limit is 10k)
max_delete_objects: usizeMaximum number of objects that can be deleted with one API call (AWS limit is 1k)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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
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