#[non_exhaustive]pub struct CredentialInjector { /* private fields */ }Expand description
Maps destination domains to credential injection rules.
Implementations§
Source§impl CredentialInjector
impl CredentialInjector
Sourcepub fn add_mapping(
&mut self,
domain: impl Into<String>,
header: impl Into<String>,
value: impl Into<String>,
)
pub fn add_mapping( &mut self, domain: impl Into<String>, header: impl Into<String>, value: impl Into<String>, )
Register a credential mapping for a domain.
Sourcepub fn get_mapping(&self, domain: &str) -> Option<&CredentialMapping>
pub fn get_mapping(&self, domain: &str) -> Option<&CredentialMapping>
Get the credential mapping for a domain, if any.
Trait Implementations§
Source§impl Clone for CredentialInjector
impl Clone for CredentialInjector
Source§fn clone(&self) -> CredentialInjector
fn clone(&self) -> CredentialInjector
Returns a duplicate of the value. Read more
1.0.0 · 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 CredentialInjector
impl Debug for CredentialInjector
Auto Trait Implementations§
impl Freeze for CredentialInjector
impl RefUnwindSafe for CredentialInjector
impl Send for CredentialInjector
impl Sync for CredentialInjector
impl Unpin for CredentialInjector
impl UnsafeUnpin for CredentialInjector
impl UnwindSafe for CredentialInjector
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