#[non_exhaustive]pub struct ViewOne {
pub id: u32,
pub account_id: u64,
pub status: Status,
pub expires_at: OffsetDateTime,
pub last_used_at: Option<OffsetDateTime>,
pub created: OffsetDateTime,
pub modified: OffsetDateTime,
pub key_version: u32,
}Expand description
Representation of a single license associated with an account.
Used in license listing and detail-view responses.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: u32§account_id: u64§status: Status§expires_at: OffsetDateTime§last_used_at: Option<OffsetDateTime>§created: OffsetDateTime§modified: OffsetDateTime§key_version: u32Trait Implementations§
impl Eq for ViewOne
Source§impl Ord for ViewOne
impl Ord for ViewOne
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ViewOne
impl PartialOrd for ViewOne
impl StructuralPartialEq for ViewOne
Auto Trait Implementations§
impl Freeze for ViewOne
impl RefUnwindSafe for ViewOne
impl Send for ViewOne
impl Sync for ViewOne
impl Unpin for ViewOne
impl UnsafeUnpin for ViewOne
impl UnwindSafe for ViewOne
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