pub struct InsomniaAuth {
pub auth_type: String,
pub disabled: Option<bool>,
pub username: Option<String>,
pub password: Option<String>,
pub token: Option<String>,
pub prefix: Option<String>,
pub key: Option<String>,
pub value: Option<String>,
pub access_token_url: Option<String>,
pub client_id: Option<String>,
pub grant_type: Option<String>,
pub access_token: Option<String>,
}Expand description
Insomnia authentication configuration
Fields§
§auth_type: StringAuthentication type (bearer, basic, apikey, etc.)
disabled: Option<bool>Whether authentication is disabled
username: Option<String>Username (for basic auth)
password: Option<String>Password (for basic auth)
token: Option<String>Bearer token (for bearer auth)
prefix: Option<String>Token prefix (for bearer auth)
key: Option<String>API key name (for apikey auth)
value: Option<String>API key value (for apikey auth)
access_token_url: Option<String>OAuth2 access token URL
client_id: Option<String>OAuth2 client ID
grant_type: Option<String>OAuth2 grant type
access_token: Option<String>OAuth2 access token value (stored after successful OAuth flow)
Trait Implementations§
Source§impl Debug for InsomniaAuth
impl Debug for InsomniaAuth
Source§impl<'de> Deserialize<'de> for InsomniaAuth
impl<'de> Deserialize<'de> for InsomniaAuth
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 InsomniaAuth
impl RefUnwindSafe for InsomniaAuth
impl Send for InsomniaAuth
impl Sync for InsomniaAuth
impl Unpin for InsomniaAuth
impl UnsafeUnpin for InsomniaAuth
impl UnwindSafe for InsomniaAuth
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