[][src]Struct s3handler::CredentialConfig

pub struct CredentialConfig {
    pub host: String,
    pub user: Option<String>,
    pub access_key: String,
    pub secret_key: String,
    pub region: Option<String>,
    pub s3_type: Option<String>,
}

The struct for credential config for each S3 cluster

  • host is a parameter for the server you want to link
    • it can be s3.us-east-1.amazonaws.com or a ip, ex 10.1.1.100, for a ceph node
  • user name is not required, because it only show in the prompt of shell
  • access_key and secret_key are keys to connect to the cluster providing S3
  • region is a paramter for the S3 cluster location
    • if region is not specified, it will take default value us-east-1
  • s3 type is a shortcut to set up auth type, format, url style for aws or ceph
    • if s3_type is not specified, it will take aws as default value, aws

Fields

host: Stringuser: Option<String>access_key: Stringsecret_key: Stringregion: Option<String>s3_type: Option<String>

Trait Implementations

impl Clone for CredentialConfig[src]

impl Debug for CredentialConfig[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> Same<T> for T

type Output = T

Should always be Self