pub struct EcsSecurityCredentialsMetadataResponse { /* private fields */ }Expand description
Parser for responses received from the ECS security-credentials metadata service.
Implementations§
Source§impl EcsSecurityCredentialsMetadataResponse
impl EcsSecurityCredentialsMetadataResponse
Sourcepub fn deserialize(s: &str) -> Result<Self, Error>
pub fn deserialize(s: &str) -> Result<Self, Error>
Deserialize a JSON response received from the ECS metadata service.
Parses the credentials from a response received from
http://169.254.169.254/latest/meta-data/iam/security-credentials/{name-of-RAM-role}.
§Errors
Returns an error if the JSON is invalid.
Sourcepub const fn expiration(&self) -> PrimitiveDateTime
pub const fn expiration(&self) -> PrimitiveDateTime
Get the expiration of the credentials of this EcsSecurityCredentialsMetadataResponse
Sourcepub fn into_credentials(self) -> Credentials
pub fn into_credentials(self) -> Credentials
Convert this EcsSecurityCredentialsMetadataResponse into Credentials
Sourcepub fn rotate_credentials(self, rotating: &RotatingCredentials)
pub fn rotate_credentials(self, rotating: &RotatingCredentials)
Update a RotatingCredentials with the credentials of this EcsSecurityCredentialsMetadataResponse
Trait Implementations§
Source§impl Clone for EcsSecurityCredentialsMetadataResponse
impl Clone for EcsSecurityCredentialsMetadataResponse
Source§fn clone(&self) -> EcsSecurityCredentialsMetadataResponse
fn clone(&self) -> EcsSecurityCredentialsMetadataResponse
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for EcsSecurityCredentialsMetadataResponse
impl<'de> Deserialize<'de> for EcsSecurityCredentialsMetadataResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EcsSecurityCredentialsMetadataResponse
impl RefUnwindSafe for EcsSecurityCredentialsMetadataResponse
impl Send for EcsSecurityCredentialsMetadataResponse
impl Sync for EcsSecurityCredentialsMetadataResponse
impl Unpin for EcsSecurityCredentialsMetadataResponse
impl UnwindSafe for EcsSecurityCredentialsMetadataResponse
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)