pub struct StorageConfig {
pub access_key_id: Option<String>,
pub secret_access_key: Option<String>,
pub session_token: Option<String>,
pub region: Option<String>,
pub max_attempts: Option<u32>,
pub sts_config: Option<StsAssumeRoleConfig>,
pub endpoint: Option<String>,
pub aliases: HashMap<String, String>,
pub bucket_region: Option<String>,
}
Expand description
Configuration for connecting to S3-compatible storage
This value is meant to be parsed from link configuration, and can represent any S3-compatible storage (excluding AWS-specific things like STS)
NOTE that when storage config is provided via link configuration
Fields§
§access_key_id: Option<String>
AWS_ACCESS_KEY_ID, can be specified from environment
secret_access_key: Option<String>
AWS_SECRET_ACCESS_KEY, can be in environment
session_token: Option<String>
Session Token
region: Option<String>
AWS_REGION
max_attempts: Option<u32>
override default max_attempts (3) for retries
sts_config: Option<StsAssumeRoleConfig>
optional configuration for STS Assume Role
endpoint: Option<String>
optional override for the AWS endpoint
aliases: HashMap<String, String>
optional map of bucket aliases to names
bucket_region: Option<String>
Region in which buckets will be created
Implementations§
source§impl StorageConfig
impl StorageConfig
sourcepub async fn from_link_config(__arg0: &LinkConfig<'_>) -> Result<StorageConfig>
pub async fn from_link_config(__arg0: &LinkConfig<'_>) -> Result<StorageConfig>
initialize from linkdef values
Trait Implementations§
source§impl Clone for StorageConfig
impl Clone for StorageConfig
source§fn clone(&self) -> StorageConfig
fn clone(&self) -> StorageConfig
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 StorageConfig
impl Debug for StorageConfig
source§impl Default for StorageConfig
impl Default for StorageConfig
source§fn default() -> StorageConfig
fn default() -> StorageConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StorageConfig
impl<'de> Deserialize<'de> for StorageConfig
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
Auto Trait Implementations§
impl Freeze for StorageConfig
impl RefUnwindSafe for StorageConfig
impl Send for StorageConfig
impl Sync for StorageConfig
impl Unpin for StorageConfig
impl UnwindSafe for StorageConfig
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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 moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Creates a shared type from an unshared type.