pub enum Step {
AwaitingCode {
channel: String,
},
AwaitingApproval,
Done {
session: Value,
display_name: String,
sso_expires_at: Option<i64>,
},
Failed(String),
}Expand description
Where a login is. Its Debug never shows a done step’s session.
Variants§
AwaitingCode
Grab sent a code (channel: sms, whatsapp, …).
AwaitingApproval
Grab asked the app to approve it.
Done
Logged in: the session to keep, the account’s name.
Fields
Failed(String)
It ended (a wrong code, a step-up the app can’t do: reCAPTCHA, selfie, PIN), why.
Trait Implementations§
impl Eq for Step
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Forget for Step
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
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