pub struct StaticCredentials { /* private fields */ }Expand description
Answers from a map given up front.
For tests, and for a host that resolved its credentials somewhere else entirely — a vault client, a secrets mount, an operator’s own prompt — and just needs to hand the answers over.
Implementations§
Source§impl StaticCredentials
impl StaticCredentials
pub fn new(entries: impl IntoIterator<Item = (String, Secret)>) -> Self
Trait Implementations§
Source§impl CredentialSource for StaticCredentials
impl CredentialSource for StaticCredentials
Auto Trait Implementations§
impl Forget for StaticCredentials
impl Freeze for StaticCredentials
impl Move for StaticCredentials
impl RefUnwindSafe for StaticCredentials
impl Send for StaticCredentials
impl Sync for StaticCredentials
impl Unpin for StaticCredentials
impl UnsafeUnpin for StaticCredentials
impl UnwindSafe for StaticCredentials
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