pub struct S3StorageConfig {
pub bucket: String,
pub key_prefix: Option<String>,
pub access_key_id: Option<String>,
pub secret_access_key_var: Option<String>,
pub session_token_var: Option<String>,
pub region: Option<String>,
pub endpoint_url: Option<String>,
pub allow_http: Option<bool>,
}Expand description
S3-compatible storage settings for ATIF trajectory upload.
Every connection field is optional. Unset fields fall back to the matching
AWS_* environment variable, preserving the env-driven workflow while
letting one config file fully describe a destination when needed. Secret
credentials are referenced by env var name (the _var suffix), so
multiple destinations can each carry their own credentials without leaking
secret material into the config.
Fields§
§bucket: StringDestination bucket name. Must be non-empty.
key_prefix: Option<String>Optional key prefix applied to every uploaded object. A trailing / is
inserted automatically when one is missing.
access_key_id: Option<String>Static AWS access key ID. When unset, AWS_ACCESS_KEY_ID is used.
secret_access_key_var: Option<String>Name of the environment variable that holds the static secret access
key. Validated to be non-empty and present at plugin initialization
time. When unset, AWS_SECRET_ACCESS_KEY is used.
session_token_var: Option<String>Name of the environment variable that holds the optional STS session
token. Validated to be non-empty and present at plugin initialization
time. When unset, AWS_SESSION_TOKEN is used.
region: Option<String>AWS region for the bucket. When unset, AWS_REGION is used.
endpoint_url: Option<String>Endpoint URL override for S3-compatible storage (for example, MinIO).
When unset, AWS_ENDPOINT_URL is used.
allow_http: Option<bool>Allow plain HTTP endpoints. When unset, AWS_ALLOW_HTTP is used.
Trait Implementations§
Source§impl Clone for S3StorageConfig
impl Clone for S3StorageConfig
Source§fn clone(&self) -> S3StorageConfig
fn clone(&self) -> S3StorageConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for S3StorageConfig
impl Debug for S3StorageConfig
Source§impl<'de> Deserialize<'de> for S3StorageConfig
impl<'de> Deserialize<'de> for S3StorageConfig
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>,
Auto Trait Implementations§
impl Freeze for S3StorageConfig
impl RefUnwindSafe for S3StorageConfig
impl Send for S3StorageConfig
impl Sync for S3StorageConfig
impl Unpin for S3StorageConfig
impl UnsafeUnpin for S3StorageConfig
impl UnwindSafe for S3StorageConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned 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>
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>
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>
T in a tonic::Request