pub struct UserConsent {
pub pk: i32,
pub expires: Option<String>,
pub expiring: Option<bool>,
pub user: Box<User>,
pub application: Box<Application>,
pub permissions: Option<String>,
}
Expand description
UserConsent : UserConsent Serializer
Fields§
§pk: i32
§expires: Option<String>
§expiring: Option<bool>
§user: Box<User>
§application: Box<Application>
§permissions: Option<String>
Implementations§
Source§impl UserConsent
impl UserConsent
Sourcepub fn new(pk: i32, user: User, application: Application) -> UserConsent
pub fn new(pk: i32, user: User, application: Application) -> UserConsent
UserConsent Serializer
Trait Implementations§
Source§impl Clone for UserConsent
impl Clone for UserConsent
Source§fn clone(&self) -> UserConsent
fn clone(&self) -> UserConsent
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 UserConsent
impl Debug for UserConsent
Source§impl Default for UserConsent
impl Default for UserConsent
Source§fn default() -> UserConsent
fn default() -> UserConsent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserConsent
impl<'de> Deserialize<'de> for UserConsent
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 UserConsent
impl PartialEq for UserConsent
Source§impl Serialize for UserConsent
impl Serialize for UserConsent
impl StructuralPartialEq for UserConsent
Auto Trait Implementations§
impl Freeze for UserConsent
impl RefUnwindSafe for UserConsent
impl Send for UserConsent
impl Sync for UserConsent
impl Unpin for UserConsent
impl UnwindSafe for UserConsent
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