pub struct UserConsent {
pub data: Option<HashMap<String, Value>>,
pub consent: Option<Box<Consent>>,
pub consent_id: Option<Uuid>,
pub giver_user_id: Option<Uuid>,
pub id: Option<Uuid>,
pub insert_instant: Option<i64>,
pub last_update_instant: Option<i64>,
pub status: Option<ConsentStatus>,
pub user_id: Option<Uuid>,
pub values: Option<Vec<String>>,
}
Expand description
UserConsent : Models a User consent.
Fields§
§data: Option<HashMap<String, Value>>
§consent: Option<Box<Consent>>
§consent_id: Option<Uuid>
§giver_user_id: Option<Uuid>
§id: Option<Uuid>
§insert_instant: Option<i64>
The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
last_update_instant: Option<i64>
The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
status: Option<ConsentStatus>
§user_id: Option<Uuid>
§values: Option<Vec<String>>
Implementations§
Source§impl UserConsent
impl UserConsent
Sourcepub fn new() -> UserConsent
pub fn new() -> UserConsent
Models a User consent.
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§const fn clone_from(&mut self, source: &Self)
const 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