pub enum AuthInput {
Password {
identifier: String,
password: String,
},
OAuthCode {
code: String,
code_verifier: Option<String>,
},
Token(String),
Custom(Value),
}Expand description
Represents the input for an authentication method.
Variants§
Password
Password-based authentication.
OAuthCode
OAuth2/OIDC authorization code.
Token(String)
Token-based authentication (e.g., Bearer token).
Custom(Value)
Custom input for extensible methods.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuthInput
impl<'de> Deserialize<'de> for AuthInput
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 AuthInput
impl RefUnwindSafe for AuthInput
impl Send for AuthInput
impl Sync for AuthInput
impl Unpin for AuthInput
impl UnsafeUnpin for AuthInput
impl UnwindSafe for AuthInput
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