pub struct OtpResponse {
pub token: String,
pub entity_id: String,
pub expires_at: String,
pub max_usage: u32,
}Expand description
Response for a successfully generated OTP.
Fields§
§token: StringThe generated OTP token value.
This value is shown exactly once — it is not recoverable after this response.
entity_id: StringThe entity identifier this OTP is bound to.
expires_at: StringWhen the OTP expires (RFC 3339 timestamp).
max_usage: u32Maximum number of times this OTP can be used.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OtpResponse
impl RefUnwindSafe for OtpResponse
impl Send for OtpResponse
impl Sync for OtpResponse
impl Unpin for OtpResponse
impl UnsafeUnpin for OtpResponse
impl UnwindSafe for OtpResponse
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more