[][src]Struct rusty_s3::credentials::Ec2SecurityCredentialsMetadataResponse

pub struct Ec2SecurityCredentialsMetadataResponse { /* fields omitted */ }

Parser for responses received from the EC2 security-credentials metadata service.

Implementations

impl Ec2SecurityCredentialsMetadataResponse[src]

pub fn deserialize(s: &str) -> Result<Self, Error>[src]

Deserialize a JSON response received from the EC2 metadata service.

Parses the credentials from a response received from http://169.254.169.254/latest/meta-data/iam/security-credentials/{name-of-IAM-role}.

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

Get the key of this Ec2SecurityCredentialsMetadataResponse

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

Get the secret of this Ec2SecurityCredentialsMetadataResponse

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

Get the token of this Ec2SecurityCredentialsMetadataResponse

pub fn expiration(&self) -> PrimitiveDateTime[src]

Get the expiration of the credentials of this Ec2SecurityCredentialsMetadataResponse

pub fn into_credentials(self) -> Credentials[src]

Convert this Ec2SecurityCredentialsMetadataResponse into Credentials

pub fn rotate_credentials(self, rotating: &RotatingCredentials)[src]

Update a RotatingCredentials with the credentials of this Ec2SecurityCredentialsMetadataResponse

Trait Implementations

impl Clone for Ec2SecurityCredentialsMetadataResponse[src]

impl Debug for Ec2SecurityCredentialsMetadataResponse[src]

impl<'de> Deserialize<'de> for Ec2SecurityCredentialsMetadataResponse[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.