pub struct ApiKeyAuthenticator { /* private fields */ }Implementations§
Source§impl ApiKeyAuthenticator
impl ApiKeyAuthenticator
pub fn new(header: String, store: NativeCredentialStore) -> Self
pub fn header(&self) -> &str
pub async fn authenticate_api_key( &self, key: &str, ) -> Result<Principal, CamelError>
pub async fn authenticate_exchange( &self, exchange: &mut Exchange, ) -> Result<Principal, CamelError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApiKeyAuthenticator
impl RefUnwindSafe for ApiKeyAuthenticator
impl Send for ApiKeyAuthenticator
impl Sync for ApiKeyAuthenticator
impl Unpin for ApiKeyAuthenticator
impl UnsafeUnpin for ApiKeyAuthenticator
impl UnwindSafe for ApiKeyAuthenticator
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