Struct rusty_s3::credentials::RotatingCredentials [−][src]
Credentials that can be rotated
This struct can be cloned and shared around the rest of
the application and will always yield the latest credentials,
by calling RotatingCredentials::get.
Credentials can be updated by calling RotatingCredentials::update.
Implementations
impl RotatingCredentials[src]
pub fn new(key: String, secret: String, token: Option<String>) -> Self[src]
Construct a new RotatingCredentials using the provided key, secret and token
pub fn get(&self) -> Arc<Credentials>[src]
Get the latest credentials inside this RotatingCredentials
pub fn update(&self, key: String, secret: String, token: Option<String>)[src]
Update the credentials inside this RotatingCredentials
Trait Implementations
impl Clone for RotatingCredentials[src]
fn clone(&self) -> Self[src]
fn clone_from(&mut self, source: &Self)[src]
impl Debug for RotatingCredentials[src]
impl PartialEq<RotatingCredentials> for RotatingCredentials[src]
Auto Trait Implementations
impl RefUnwindSafe for RotatingCredentials
impl Send for RotatingCredentials
impl Sync for RotatingCredentials
impl Unpin for RotatingCredentials
impl UnwindSafe for RotatingCredentials
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>,