pub struct AccessGrant {
pub grantee_user_id: UserId,
pub encrypted_profile_key: Vec<u8>,
pub permissions: ProfilePermissions,
pub granted_at: SystemTime,
pub expires_at: Option<SystemTime>,
pub signature: Vec<u8>,
}Expand description
Access grant allowing a friend to decrypt profile data
Fields§
§grantee_user_id: UserIdUser ID of the grantee
encrypted_profile_key: Vec<u8>Profile encryption key encrypted with grantee’s public key
permissions: ProfilePermissionsPermissions granted
granted_at: SystemTimeGrant creation time
expires_at: Option<SystemTime>Optional expiration time
signature: Vec<u8>Grant signature by profile owner
Trait Implementations§
Source§impl Clone for AccessGrant
impl Clone for AccessGrant
Source§fn clone(&self) -> AccessGrant
fn clone(&self) -> AccessGrant
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 AccessGrant
impl Debug for AccessGrant
Source§impl<'de> Deserialize<'de> for AccessGrant
impl<'de> Deserialize<'de> for AccessGrant
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
Auto Trait Implementations§
impl Freeze for AccessGrant
impl RefUnwindSafe for AccessGrant
impl Send for AccessGrant
impl Sync for AccessGrant
impl Unpin for AccessGrant
impl UnwindSafe for AccessGrant
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