pub struct S3Config {
pub region: Option<String>,
pub auth: Option<S3AuthConfig>,
pub use_localstack: bool,
}Expand description
Represents configuration for AWS S3.
Fields§
§region: Option<String>The default region to apply to s3 schemed URLs.
Defaults to us-east-1.
auth: Option<S3AuthConfig>The auth to use for S3.
If None, no authentication header will be put on requests.
use_localstack: boolEnables support for localstack.
The domain suffix is expected to be localhost.localstack.cloud.
Any URLs that use the s3 scheme will be rewritten to use that suffix.
This setting is primarily intended for local testing.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for S3Config
impl<'de> Deserialize<'de> for S3Config
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 S3Config
impl RefUnwindSafe for S3Config
impl Send for S3Config
impl Sync for S3Config
impl Unpin for S3Config
impl UnwindSafe for S3Config
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