pub struct ApiKeyAuth {
pub header_name: String,
pub api_key: String,
pub prefix: Option<String>,
}Expand description
API Key authentication configuration
Fields§
§header_name: StringHeader name to use (e.g., “X-API-Key”, “Authorization”)
api_key: StringThe API key value
prefix: Option<String>Optional prefix (e.g., “Bearer”, “Api-Key”)
Implementations§
Source§impl ApiKeyAuth
impl ApiKeyAuth
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 moreSource§impl Debug for ApiKeyAuth
impl Debug for ApiKeyAuth
Source§impl<'de> Deserialize<'de> for ApiKeyAuth
impl<'de> Deserialize<'de> for ApiKeyAuth
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto 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