pub struct LicensePayload {
pub expires: u64,
pub grace: Option<u64>,
pub roles: Vec<String>,
pub meta: Option<Value>,
}Fields§
§expires: u64§grace: Option<u64>§roles: Vec<String>§meta: Option<Value>Trait Implementations§
Source§impl Clone for LicensePayload
impl Clone for LicensePayload
Source§fn clone(&self) -> LicensePayload
fn clone(&self) -> LicensePayload
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 LicensePayload
impl Debug for LicensePayload
Source§impl Default for LicensePayload
impl Default for LicensePayload
Source§fn default() -> LicensePayload
fn default() -> LicensePayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LicensePayload
impl<'de> Deserialize<'de> for LicensePayload
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 LicensePayload
impl PartialEq for LicensePayload
Source§impl Serialize for LicensePayload
impl Serialize for LicensePayload
impl StructuralPartialEq for LicensePayload
Auto Trait Implementations§
impl Freeze for LicensePayload
impl RefUnwindSafe for LicensePayload
impl Send for LicensePayload
impl Sync for LicensePayload
impl Unpin for LicensePayload
impl UnsafeUnpin for LicensePayload
impl UnwindSafe for LicensePayload
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