pub struct OtpSummary {
pub id: String,
pub entity_id: String,
pub expires_at: String,
pub max_usage: u32,
pub usage_count: u32,
pub created_at: String,
}Expand description
OTP summary for listing.
Fields§
§id: StringOpaque OTP identifier for management (not the OTP value).
entity_id: StringThe entity identifier this OTP is bound to.
expires_at: StringWhen the OTP expires (RFC 3339 timestamp).
max_usage: u32Maximum allowed uses.
usage_count: u32How many times the OTP has been used so far.
created_at: StringWhen the OTP was created (RFC 3339 timestamp).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OtpSummary
impl RefUnwindSafe for OtpSummary
impl Send for OtpSummary
impl Sync for OtpSummary
impl Unpin for OtpSummary
impl UnsafeUnpin for OtpSummary
impl UnwindSafe for OtpSummary
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