pub struct S3ObjectStoreConfig {
pub bucket: String,
pub endpoint: Option<String>,
pub region: Option<String>,
pub access_key_id: Option<SecretString>,
pub secret_access_key: Option<SecretString>,
pub allow_http: bool,
pub virtual_hosted_style_request: bool,
}Expand description
Configuration for an S3-compatible object store.
Fields§
§bucket: StringBucket that receives objects.
endpoint: Option<String>Optional custom endpoint for S3-compatible services.
region: Option<String>Optional AWS region.
access_key_id: Option<SecretString>Optional access key; must be paired with secret_access_key.
secret_access_key: Option<SecretString>Optional secret key; must be paired with access_key_id.
allow_http: boolAllows plain HTTP endpoints, typically for local development.
virtual_hosted_style_request: boolUses virtual-hosted-style bucket addressing when enabled.
Implementations§
Source§impl S3ObjectStoreConfig
impl S3ObjectStoreConfig
Sourcepub fn minio(
bucket: impl Into<String>,
endpoint: impl Into<String>,
access_key_id: impl Into<String>,
secret_access_key: impl Into<String>,
) -> Self
pub fn minio( bucket: impl Into<String>, endpoint: impl Into<String>, access_key_id: impl Into<String>, secret_access_key: impl Into<String>, ) -> Self
Creates secure path-style settings for a MinIO-compatible endpoint.
Plain HTTP remains disabled. Callers using an isolated local endpoint
must opt in by setting Self::allow_http explicitly.
Trait Implementations§
Source§impl Debug for S3ObjectStoreConfig
impl Debug for S3ObjectStoreConfig
impl Eq for S3ObjectStoreConfig
Source§impl PartialEq for S3ObjectStoreConfig
impl PartialEq for S3ObjectStoreConfig
impl StructuralPartialEq for S3ObjectStoreConfig
Auto Trait Implementations§
impl Freeze for S3ObjectStoreConfig
impl RefUnwindSafe for S3ObjectStoreConfig
impl Send for S3ObjectStoreConfig
impl Sync for S3ObjectStoreConfig
impl Unpin for S3ObjectStoreConfig
impl UnsafeUnpin for S3ObjectStoreConfig
impl UnwindSafe for S3ObjectStoreConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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