[−][src]Struct s3handler::CredentialConfig
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: String
user: Option<String>
access_key: String
secret_key: String
region: Option<String>
s3_type: Option<String>
Trait Implementations
impl Clone for CredentialConfig
[src]
fn clone(&self) -> CredentialConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CredentialConfig
[src]
impl<'de> Deserialize<'de> for CredentialConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for CredentialConfig
impl Sync for CredentialConfig
impl Send for CredentialConfig
impl UnwindSafe for CredentialConfig
impl RefUnwindSafe for CredentialConfig
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self