pub struct StorageOptions(pub HashMap<String, String>);
Tuple Fields§
§0: HashMap<String, String>
Implementations§
Source§impl StorageOptions
impl StorageOptions
Sourcepub fn with_env_azure(&mut self)
pub fn with_env_azure(&mut self)
Add values from the environment to storage options
Sourcepub fn with_env_gcs(&mut self)
pub fn with_env_gcs(&mut self)
Add values from the environment to storage options
Sourcepub fn with_env_s3(&mut self)
pub fn with_env_s3(&mut self)
Add values from the environment to storage options
Sourcepub fn allow_http(&self) -> bool
pub fn allow_http(&self) -> bool
Denotes if unsecure connections via http are allowed
Sourcepub fn download_retry_count(&self) -> usize
pub fn download_retry_count(&self) -> usize
Number of times to retry a download that fails
Sourcepub fn client_max_retries(&self) -> usize
pub fn client_max_retries(&self) -> usize
Max retry times to set in RetryConfig for s3 client
Sourcepub fn client_retry_timeout(&self) -> u64
pub fn client_retry_timeout(&self) -> u64
Seconds of timeout to set in RetryConfig for s3 client
Sourcepub fn as_azure_options(&self) -> HashMap<AzureConfigKey, String>
pub fn as_azure_options(&self) -> HashMap<AzureConfigKey, String>
Subset of options relevant for azure storage
Sourcepub fn as_s3_options(&self) -> HashMap<AmazonS3ConfigKey, String>
pub fn as_s3_options(&self) -> HashMap<AmazonS3ConfigKey, String>
Subset of options relevant for s3 storage
Sourcepub fn as_gcs_options(&self) -> HashMap<GoogleConfigKey, String>
pub fn as_gcs_options(&self) -> HashMap<GoogleConfigKey, String>
Subset of options relevant for gcs storage
Trait Implementations§
Source§impl Clone for StorageOptions
impl Clone for StorageOptions
Source§fn clone(&self) -> StorageOptions
fn clone(&self) -> StorageOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StorageOptions
impl Debug for StorageOptions
Source§impl Default for StorageOptions
impl Default for StorageOptions
Source§fn default() -> StorageOptions
fn default() -> StorageOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StorageOptions
impl RefUnwindSafe for StorageOptions
impl Send for StorageOptions
impl Sync for StorageOptions
impl Unpin for StorageOptions
impl UnwindSafe for StorageOptions
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 moreCreates a shared type from an unshared type.