pub enum OtpGateResult {
NotGated,
RequiresOtp {
reason: String,
},
Approved,
Denied {
reason: String,
},
}Expand description
Decision from the OTP gate.
Variants§
NotGated
Action is not gated — proceed without OTP.
RequiresOtp
Action requires OTP validation.
Approved
OTP was validated and the action is approved (cached for cache_valid_secs).
Denied
OTP validation failed.
Trait Implementations§
Source§impl Clone for OtpGateResult
impl Clone for OtpGateResult
Source§fn clone(&self) -> OtpGateResult
fn clone(&self) -> OtpGateResult
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 OtpGateResult
impl Debug for OtpGateResult
Source§impl PartialEq for OtpGateResult
impl PartialEq for OtpGateResult
impl Eq for OtpGateResult
impl StructuralPartialEq for OtpGateResult
Auto Trait Implementations§
impl Freeze for OtpGateResult
impl RefUnwindSafe for OtpGateResult
impl Send for OtpGateResult
impl Sync for OtpGateResult
impl Unpin for OtpGateResult
impl UnsafeUnpin for OtpGateResult
impl UnwindSafe for OtpGateResult
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