#[non_exhaustive]pub struct VerifyResponse {
pub valid: bool,
pub license_id: Option<u32>,
pub expires_at: Option<OffsetDateTime>,
pub reason: Option<String>,
}Expand description
Response body returned from a license verification request.
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.valid: bool§license_id: Option<u32>§expires_at: Option<OffsetDateTime>§reason: Option<String>Trait Implementations§
Source§impl Clone for VerifyResponse
impl Clone for VerifyResponse
Source§fn clone(&self) -> VerifyResponse
fn clone(&self) -> VerifyResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VerifyResponse
impl Debug for VerifyResponse
impl Eq for VerifyResponse
Source§impl Hash for VerifyResponse
impl Hash for VerifyResponse
Source§impl Ord for VerifyResponse
impl Ord for VerifyResponse
Source§fn cmp(&self, other: &VerifyResponse) -> Ordering
fn cmp(&self, other: &VerifyResponse) -> Ordering
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 PartialEq for VerifyResponse
impl PartialEq for VerifyResponse
Source§fn eq(&self, other: &VerifyResponse) -> bool
fn eq(&self, other: &VerifyResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for VerifyResponse
impl PartialOrd for VerifyResponse
impl StructuralPartialEq for VerifyResponse
Auto Trait Implementations§
impl Freeze for VerifyResponse
impl RefUnwindSafe for VerifyResponse
impl Send for VerifyResponse
impl Sync for VerifyResponse
impl Unpin for VerifyResponse
impl UnsafeUnpin for VerifyResponse
impl UnwindSafe for VerifyResponse
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