pub struct UserLicense {Show 15 fields
pub license_key: Option<String>,
pub id: Option<Uuid>,
pub name: Option<String>,
pub email: Option<String>,
pub premium: Option<bool>,
pub max_storage_gb: Option<i32>,
pub version: Option<i32>,
pub issued: Option<String>,
pub refresh: Option<String>,
pub expires: Option<String>,
pub trial: Option<bool>,
pub license_type: Option<LicenseType>,
pub hash: Option<String>,
pub signature: Option<String>,
pub token: Option<String>,
}
Fields§
§license_key: Option<String>
§id: Option<Uuid>
§name: Option<String>
§email: Option<String>
§max_storage_gb: Option<i32>
§version: Option<i32>
§issued: Option<String>
§refresh: Option<String>
§expires: Option<String>
§trial: Option<bool>
§license_type: Option<LicenseType>
§hash: Option<String>
§signature: Option<String>
§token: Option<String>
Implementations§
Source§impl UserLicense
impl UserLicense
pub fn new() -> UserLicense
Trait Implementations§
Source§impl Clone for UserLicense
impl Clone for UserLicense
Source§fn clone(&self) -> UserLicense
fn clone(&self) -> UserLicense
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 UserLicense
impl Debug for UserLicense
Source§impl Default for UserLicense
impl Default for UserLicense
Source§fn default() -> UserLicense
fn default() -> UserLicense
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserLicense
impl<'de> Deserialize<'de> for UserLicense
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 UserLicense
impl PartialEq for UserLicense
Source§impl Serialize for UserLicense
impl Serialize for UserLicense
impl StructuralPartialEq for UserLicense
Auto Trait Implementations§
impl Freeze for UserLicense
impl RefUnwindSafe for UserLicense
impl Send for UserLicense
impl Sync for UserLicense
impl Unpin for UserLicense
impl UnwindSafe for UserLicense
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