[][src]Struct xaynet_server::settings::s3::S3Settings

pub struct S3Settings {
    pub access_key: String,
    pub secret_access_key: String,
    pub region: Region,
    pub buckets: S3BucketsSettings,
}
This is supported on crate feature model-persistence only.

S3 settings.

Fields

access_key: String

The access key ID.

Examples

TOML

[s3]
access_key = "AKIAIOSFODNN7EXAMPLE"

Environment variable

XAYNET_S3__ACCESS_KEY=AKIAIOSFODNN7EXAMPLE
secret_access_key: String

The secret access key.

Examples

TOML

[s3]
secret_access_key = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"

Environment variable

XAYNET_S3__SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
region: Region

The Regional AWS endpoint.

The region is specified using the Region code

Examples

TOML

[s3]
region = ["eu-west-1"]

Environment variable

XAYNET_S3__REGION="eu-west-1"

To connect to AWS-compatible services such as Minio, you need to specify a custom region.

Examples

TOML

[s3]
region = ["minio", "http://localhost:8000"]

Environment variable

XAYNET_S3__REGION="minio http://localhost:8000"
buckets: S3BucketsSettings

Trait Implementations

impl Debug for S3Settings[src]

impl<'de> Deserialize<'de> for S3Settings[src]

impl Validate for S3Settings[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]