pub struct ApiKeyAuth {
pub api_key: String,
pub header_name: String,
}Expand description
API Key authentication
Fields§
§api_key: String§header_name: StringImplementations§
Source§impl ApiKeyAuth
impl ApiKeyAuth
pub fn new(api_key: String) -> ApiKeyAuth
pub fn with_header_name(self, header_name: String) -> ApiKeyAuth
pub fn get_api_key(&self) -> &str
pub fn get_header_name(&self) -> &str
Trait Implementations§
Source§impl Clone for ApiKeyAuth
impl Clone for ApiKeyAuth
Source§fn clone(&self) -> ApiKeyAuth
fn clone(&self) -> ApiKeyAuth
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 moreAuto Trait Implementations§
impl Freeze for ApiKeyAuth
impl RefUnwindSafe for ApiKeyAuth
impl Send for ApiKeyAuth
impl Sync for ApiKeyAuth
impl Unpin for ApiKeyAuth
impl UnwindSafe for ApiKeyAuth
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