#[non_exhaustive]pub struct AccessKeyCredentials {
pub access_key_id: String,
pub secret_access_key: String,
pub session_token: String,
/* private fields */
}Expand description
Message describing AWS Credentials using access key id and secret.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.access_key_id: StringAWS access key ID.
secret_access_key: StringInput only. AWS secret access key.
session_token: StringInput only. AWS session token. Used only when AWS security token service (STS) is responsible for creating the temporary credentials.
Implementations§
Source§impl AccessKeyCredentials
impl AccessKeyCredentials
Sourcepub fn set_access_key_id<T: Into<String>>(self, v: T) -> Self
pub fn set_access_key_id<T: Into<String>>(self, v: T) -> Self
Sets the value of access_key_id.
§Example
ⓘ
let x = AccessKeyCredentials::new().set_access_key_id("example");Sourcepub fn set_secret_access_key<T: Into<String>>(self, v: T) -> Self
pub fn set_secret_access_key<T: Into<String>>(self, v: T) -> Self
Sets the value of secret_access_key.
§Example
ⓘ
let x = AccessKeyCredentials::new().set_secret_access_key("example");Sourcepub fn set_session_token<T: Into<String>>(self, v: T) -> Self
pub fn set_session_token<T: Into<String>>(self, v: T) -> Self
Sets the value of session_token.
§Example
ⓘ
let x = AccessKeyCredentials::new().set_session_token("example");Trait Implementations§
Source§impl Clone for AccessKeyCredentials
impl Clone for AccessKeyCredentials
Source§fn clone(&self) -> AccessKeyCredentials
fn clone(&self) -> AccessKeyCredentials
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AccessKeyCredentials
impl Debug for AccessKeyCredentials
Source§impl Default for AccessKeyCredentials
impl Default for AccessKeyCredentials
Source§fn default() -> AccessKeyCredentials
fn default() -> AccessKeyCredentials
Returns the “default value” for a type. Read more
Source§impl Message for AccessKeyCredentials
impl Message for AccessKeyCredentials
Source§impl PartialEq for AccessKeyCredentials
impl PartialEq for AccessKeyCredentials
Source§fn eq(&self, other: &AccessKeyCredentials) -> bool
fn eq(&self, other: &AccessKeyCredentials) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AccessKeyCredentials
Auto Trait Implementations§
impl Freeze for AccessKeyCredentials
impl RefUnwindSafe for AccessKeyCredentials
impl Send for AccessKeyCredentials
impl Sync for AccessKeyCredentials
impl Unpin for AccessKeyCredentials
impl UnsafeUnpin for AccessKeyCredentials
impl UnwindSafe for AccessKeyCredentials
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more