pub struct LicenseInformation {
pub description_html: String,
pub expires_at: DateTime<Utc>,
pub expires_in_seconds: i64,
pub extension_url: String,
pub is_expired: bool,
pub is_trial: bool,
pub remind_schedule: DisplaySchedule,
pub remind_starting_at: DateTime<Utc>,
}
Expand description
LicenseInformation
JSON schema
{
"type": "object",
"required": [
"description_html",
"expires_at",
"expires_in_seconds",
"extension_url",
"is_expired",
"is_trial",
"remind_schedule",
"remind_starting_at"
],
"properties": {
"description_html": {
"description": "Optional description of the advantages of extending the license / upgrading from a trial",
"type": "string"
},
"expires_at": {
"description": "Timestamp at which the license expires",
"type": "string",
"format": "date-time"
},
"expires_in_seconds": {
"description": "Duration until the license expires",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"extension_url": {
"description": "URL that navigates the user to extend / upgrade their license",
"type": "string"
},
"is_expired": {
"description": "Whether the license is expired",
"type": "boolean"
},
"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",
"format": "date-time"
}
}
}
Fields§
§description_html: String
Optional description of the advantages of extending the license / upgrading from a trial
expires_at: DateTime<Utc>
Timestamp at which the license expires
expires_in_seconds: i64
Duration until the license expires
extension_url: String
URL that navigates the user to extend / upgrade their license
is_expired: bool
Whether the license is expired
is_trial: bool
Whether the license is a trial
remind_schedule: DisplaySchedule
§remind_starting_at: DateTime<Utc>
Timestamp from which the user should be reminded of the license expiring soon
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 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 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 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