[−][src]Struct rusty_s3::credentials::Credentials
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]
pub fn clone(&self) -> Credentials[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for Credentials[src]
impl Eq for Credentials[src]
impl PartialEq<Credentials> for Credentials[src]
pub fn eq(&self, other: &Credentials) -> bool[src]
pub fn ne(&self, other: &Credentials) -> bool[src]
impl StructuralEq for Credentials[src]
impl StructuralPartialEq for Credentials[src]
Auto Trait Implementations
impl RefUnwindSafe for Credentials[src]
impl Send for Credentials[src]
impl Sync for Credentials[src]
impl Unpin for Credentials[src]
impl UnwindSafe for Credentials[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut 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.
pub 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>,