pub struct StaticProvider(pub HashMap<String, Credential>);Tuple Fields§
§0: HashMap<String, Credential>Trait Implementations§
Source§impl CredentialProvider for StaticProvider
impl CredentialProvider for StaticProvider
fn credential_for(&self, host: &str) -> Result<Option<Credential>>
fn identity_for(&self, host: &str) -> Option<String>
Auto Trait Implementations§
impl Freeze for StaticProvider
impl RefUnwindSafe for StaticProvider
impl Send for StaticProvider
impl Sync for StaticProvider
impl Unpin for StaticProvider
impl UnsafeUnpin for StaticProvider
impl UnwindSafe for StaticProvider
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