pub struct LicenseInformation {
pub current: DateTime<Utc>,
pub description_html: String,
pub extension_url: Option<String>,
pub is_trial: bool,
pub remind_schedule: DisplaySchedule,
pub remind_starting_at: Option<DateTime<Utc>>,
pub valid_until: Option<DateTime<Utc>>,
}
Expand description
LicenseInformation
JSON schema
{
"type": "object",
"required": [
"current",
"description_html",
"is_trial",
"remind_schedule"
],
"properties": {
"current": {
"description": "Timestamp when the server responded.",
"type": "string",
"format": "date-time"
},
"description_html": {
"description": "Optional description of the advantages of extending the license / upgrading from a trial",
"type": "string"
},
"extension_url": {
"description": "URL that navigates the user to extend / upgrade their license",
"type": [
"string",
"null"
]
},
"is_trial": {
"description": "Whether the license is a trial",
"type": "boolean"
},
"remind_schedule": {
"$ref": "#/components/schemas/DisplaySchedule"
},
"remind_starting_at": {
"description": "Timestamp from which the user should be reminded of the license expiring soon",
"type": [
"string",
"null"
],
"format": "date-time"
},
"valid_until": {
"description": "Timestamp at which point the license expires",
"type": [
"string",
"null"
],
"format": "date-time"
}
}
}
Fields§
§current: DateTime<Utc>
Timestamp when the server responded.
description_html: String
Optional 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
is_trial: bool
Whether the license is a trial
remind_schedule: DisplaySchedule
§remind_starting_at: Option<DateTime<Utc>>
Timestamp from which the user should be reminded of the license expiring soon
valid_until: Option<DateTime<Utc>>
Timestamp at which point the license expires
Implementations§
Source§impl LicenseInformation
impl LicenseInformation
pub fn builder() -> LicenseInformation
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 From<&LicenseInformation> for LicenseInformation
impl From<&LicenseInformation> for LicenseInformation
Source§fn from(value: &LicenseInformation) -> Self
fn from(value: &LicenseInformation) -> Self
Converts to this type from the input type.
Source§impl From<LicenseInformation> for LicenseInformation
impl From<LicenseInformation> for LicenseInformation
Source§fn from(value: LicenseInformation) -> Self
fn from(value: LicenseInformation) -> Self
Converts to this type from the input type.
Source§impl From<LicenseInformation> for LicenseValidity
impl From<LicenseInformation> for LicenseValidity
Source§fn from(value: LicenseInformation) -> Self
fn from(value: LicenseInformation) -> Self
Converts to this type from the input type.
Source§impl Serialize for LicenseInformation
impl Serialize for LicenseInformation
Source§impl TryFrom<LicenseInformation> for LicenseInformation
impl TryFrom<LicenseInformation> for LicenseInformation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: LicenseInformation) -> Result<Self, ConversionError>
fn try_from(value: LicenseInformation) -> Result<Self, ConversionError>
Performs the conversion.
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