pub enum OAuthResult {
SilentSuccess {
code: String,
redirect_url: String,
},
ConsentRequired {
scopes: Vec<String>,
app_name: String,
consent_form: ConsentForm,
},
MfaRequired {
mfa_type: MfaType,
challenge_form: HtmlForm,
},
BrowserFallbackNeeded {
reason: String,
},
}Expand description
Result of an HTTP-native OAuth flow.
OAuth redirect chains can often be completed without a browser when consent was previously granted. When consent is needed, the flow pauses for agent/user approval.
Variants§
SilentSuccess
Consent was pre-approved — auth code obtained via redirect chain.
Fields
ConsentRequired
Consent is needed — pausing for user/agent approval.
Fields
§
consent_form: ConsentFormThe parsed consent form for submission.
MfaRequired
Multi-factor authentication required during auth flow.
BrowserFallbackNeeded
HTTP approach failed — fall back to browser.
Trait Implementations§
Source§impl Clone for OAuthResult
impl Clone for OAuthResult
Source§fn clone(&self) -> OAuthResult
fn clone(&self) -> OAuthResult
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 OAuthResult
impl Debug for OAuthResult
Source§impl<'de> Deserialize<'de> for OAuthResult
impl<'de> Deserialize<'de> for OAuthResult
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 OAuthResult
impl RefUnwindSafe for OAuthResult
impl Send for OAuthResult
impl Sync for OAuthResult
impl Unpin for OAuthResult
impl UnsafeUnpin for OAuthResult
impl UnwindSafe for OAuthResult
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