pub struct Settings {
pub concurrency: Option<ConcurrencySettings>,
pub retries: Option<RetriesSettings>,
pub timeouts: Option<TimeoutSettings>,
pub unsafe_use_conditional_update: Option<bool>,
pub unsafe_use_conditional_create: Option<bool>,
pub unsafe_use_metadata: Option<bool>,
pub storage_class: Option<String>,
pub metadata_storage_class: Option<String>,
pub chunks_storage_class: Option<String>,
pub minimum_size_for_multipart_upload: Option<u64>,
}Expand description
Configuration for storage operations (retries, concurrency, storage classes).
Fields§
§concurrency: Option<ConcurrencySettings>§retries: Option<RetriesSettings>§timeouts: Option<TimeoutSettings>§unsafe_use_conditional_update: Option<bool>§unsafe_use_conditional_create: Option<bool>§unsafe_use_metadata: Option<bool>§storage_class: Option<String>§metadata_storage_class: Option<String>§chunks_storage_class: Option<String>§minimum_size_for_multipart_upload: Option<u64>Implementations§
Source§impl Settings
impl Settings
pub fn concurrency(&self) -> &ConcurrencySettings
pub fn retries(&self) -> &RetriesSettings
pub fn timeouts(&self) -> Option<&TimeoutSettings>
pub fn unsafe_use_conditional_create(&self) -> bool
pub fn unsafe_use_conditional_update(&self) -> bool
pub fn unsafe_use_metadata(&self) -> bool
pub fn metadata_storage_class(&self) -> Option<&String>
pub fn storage_class(&self) -> Option<&String>
pub fn chunks_storage_class(&self) -> Option<&String>
pub fn minimum_size_for_multipart_upload(&self) -> u64
pub fn merge(&self, other: Self) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
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
impl Eq for Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin 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> 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>
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