[][src]Struct rusty_s3::credentials::Credentials

pub struct Credentials { /* fields omitted */ }

S3 credentials

Implementations

impl Credentials[src]

pub fn new(key: String, secret: String) -> Self[src]

Construct a new Credentials using the provided key and secret

pub fn new_(key: String, secret: String, token: Option<String>) -> Self[src]

Construct a new Credentials using the provided key, secret and token

For backwards compatibility this method was named new_, and will replace the current new implementation in the 0.2.0 release.

pub fn from_env() -> Option<Self>[src]

Construct a new Credentials using AWS's default environment variables

Reads the key from the AWS_ACCESS_KEY_ID environment variable and the secret from the AWS_SECRET_ACCESS_KEY environment variable. If AWS_SESSION_TOKEN is set a token is also read. Returns None if either environment variables aren't set or they aren't valid utf-8.

pub fn key(&self) -> &str[src]

Get the key of this Credentials

pub fn secret(&self) -> &str[src]

Get the secret of this Credentials

pub fn token(&self) -> Option<&str>[src]

Get the token of this Credentials, if present

Trait Implementations

impl Clone for Credentials[src]

impl Debug for Credentials[src]

impl Eq for Credentials[src]

impl PartialEq<Credentials> for Credentials[src]

impl StructuralEq for Credentials[src]

impl StructuralPartialEq for Credentials[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> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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.