pub struct ProfilePermissions {
pub can_see_display_name: bool,
pub can_see_avatar: bool,
pub can_see_status: bool,
pub can_see_contact_info: bool,
pub can_see_last_seen: bool,
pub can_see_custom_fields: bool,
}Expand description
Profile access permissions
Fields§
§can_see_display_name: boolCan see full display name
can_see_avatar: boolCan see avatar image
can_see_status: boolCan see status message
can_see_contact_info: boolCan see contact information
can_see_last_seen: boolCan see when user was last online
can_see_custom_fields: boolCan see custom profile fields
Trait Implementations§
Source§impl Clone for ProfilePermissions
impl Clone for ProfilePermissions
Source§fn clone(&self) -> ProfilePermissions
fn clone(&self) -> ProfilePermissions
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 ProfilePermissions
impl Debug for ProfilePermissions
Source§impl Default for ProfilePermissions
impl Default for ProfilePermissions
Source§impl<'de> Deserialize<'de> for ProfilePermissions
impl<'de> Deserialize<'de> for ProfilePermissions
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 ProfilePermissions
impl RefUnwindSafe for ProfilePermissions
impl Send for ProfilePermissions
impl Sync for ProfilePermissions
impl Unpin for ProfilePermissions
impl UnwindSafe for ProfilePermissions
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