pub enum LicenceState {
Valid {
expires_at: Option<DateTime<Utc>>,
expiring_soon: bool,
},
Rejected {
reason: RejectReason,
},
}Expand description
State of one licence.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for LicenceState
impl Clone for LicenceState
Source§fn clone(&self) -> LicenceState
fn clone(&self) -> LicenceState
Returns a copy 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 LicenceState
impl Debug for LicenceState
Source§impl PartialEq for LicenceState
impl PartialEq for LicenceState
Source§impl Serialize for LicenceState
impl Serialize for LicenceState
impl Eq for LicenceState
impl StructuralPartialEq for LicenceState
Auto Trait Implementations§
impl Freeze for LicenceState
impl RefUnwindSafe for LicenceState
impl Send for LicenceState
impl Sync for LicenceState
impl Unpin for LicenceState
impl UnwindSafe for LicenceState
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