pub struct LicenseInformation {
pub current: DateTime<Utc>,
pub valid_until: Option<DateTime<Utc>>,
pub is_trial: bool,
pub description_html: String,
pub extension_url: Option<String>,
pub remind_starting_at: Option<DateTime<Utc>>,
pub remind_schedule: DisplaySchedule,
}Fields§
§current: DateTime<Utc>Timestamp when the server responded.
valid_until: Option<DateTime<Utc>>Timestamp at which point the license expires
is_trial: boolWhether the license is a trial
description_html: StringOptional description of the advantages of extending the license / upgrading from a trial
extension_url: Option<String>URL that navigates the user to extend / upgrade their license
remind_starting_at: Option<DateTime<Utc>>Timestamp from which the user should be reminded of the license expiring soon
remind_schedule: DisplayScheduleSuggested frequency of reminding the user about the license expiring soon
Trait Implementations§
Source§impl Clone for LicenseInformation
impl Clone for LicenseInformation
Source§fn clone(&self) -> LicenseInformation
fn clone(&self) -> LicenseInformation
Returns a duplicate 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 LicenseInformation
impl Debug for LicenseInformation
Source§impl<'de> Deserialize<'de> for LicenseInformation
impl<'de> Deserialize<'de> for LicenseInformation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LicenseInformation
impl PartialEq for LicenseInformation
Source§impl Serialize for LicenseInformation
impl Serialize for LicenseInformation
Source§impl<'__s> ToSchema<'__s> for LicenseInformation
impl<'__s> ToSchema<'__s> for LicenseInformation
impl StructuralPartialEq for LicenseInformation
Auto Trait Implementations§
impl Freeze for LicenseInformation
impl RefUnwindSafe for LicenseInformation
impl Send for LicenseInformation
impl Sync for LicenseInformation
impl Unpin for LicenseInformation
impl UnwindSafe for LicenseInformation
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