pub struct S3Credentials {
pub access_key_id: String,
pub secret_access_key: String,
pub session_token: Option<String>,
}Expand description
Long-lived or session credentials for an S3-compatible service.
Deliberately not Debug: the secret would otherwise reach any log line or
panic message that formats a config.
Fields§
§access_key_id: StringAccess key identifier.
secret_access_key: StringSecret access key, never logged or formatted.
session_token: Option<String>Session token accompanying temporary credentials.
Implementations§
Source§impl S3Credentials
impl S3Credentials
Sourcepub fn from_env() -> Option<Self>
pub fn from_env() -> Option<Self>
Read credentials from the environment variables the AWS tools set.
This is the whole credential chain mbx implements, and None means the
environment does not carry one. Anything that produces temporary
credentials – an OIDC exchange, an instance role – is expected to have
exported them here first, which is what
aws-actions/configure-aws-credentials does on GitHub Actions.
Trait Implementations§
Source§impl Clone for S3Credentials
impl Clone for S3Credentials
Source§fn clone(&self) -> S3Credentials
fn clone(&self) -> S3Credentials
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 moreAuto Trait Implementations§
impl Freeze for S3Credentials
impl RefUnwindSafe for S3Credentials
impl Send for S3Credentials
impl Sync for S3Credentials
impl Unpin for S3Credentials
impl UnsafeUnpin for S3Credentials
impl UnwindSafe for S3Credentials
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