pub struct S3Config {
pub region: Option<String>,
pub endpoint: Option<String>,
pub addressing_style: AddressingStyle,
pub allow_http: bool,
pub access_key_id: Option<String>,
pub secret_access_key: Option<String>,
pub session_token: Option<String>,
}Expand description
Non-secret S3 connection settings. Credentials are pulled from env / the
AWS credential chain — see DatasetConfig::resolved_creds.
Fields§
§region: Option<String>§endpoint: Option<String>Custom endpoint (MinIO, R2, Wasabi, LocalStack, …). Omit for AWS.
addressing_style: AddressingStylevirtual (default — bucket.host) or path (host/bucket/).
MinIO and most non-AWS providers require path.
allow_http: boolAllow plain-HTTP endpoints. Required for local MinIO over http://….
access_key_id: Option<String>Inline credentials. Strongly discouraged in production — prefer env vars (see module docs).
secret_access_key: Option<String>§session_token: Option<String>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 UnsafeUnpin 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