pub enum LoginAction {
Redirect {
url: String,
},
Prompt {
message: String,
},
Complete {
user: AuthUser,
},
}Expand description
Result of begin_login — what the runtime should do to continue
the login flow.
Variants§
Redirect
Return a 3xx redirect. Used by OAuth flows.
Prompt
Ask the caller to submit a form (or equivalent). Used by password flows where the plugin wants to render its own form, and by magic-link flows confirming the message was sent.
Complete
Login already complete — no further action needed. Used by passkey flows that finish in a single call.
Trait Implementations§
Source§impl Clone for LoginAction
impl Clone for LoginAction
Source§fn clone(&self) -> LoginAction
fn clone(&self) -> LoginAction
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 LoginAction
impl RefUnwindSafe for LoginAction
impl Send for LoginAction
impl Sync for LoginAction
impl Unpin for LoginAction
impl UnsafeUnpin for LoginAction
impl UnwindSafe for LoginAction
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