pub struct ProfileInfo {
pub id_tag: String,
pub name: String,
pub type: Option<String>,
pub profile_pic: Option<String>,
pub status: Option<ProfileStatus>,
pub connected: Option<bool>,
pub following: Option<bool>,
pub follower: Option<bool>,
pub trust: Option<ProfileTrust>,
pub roles: Option<Vec<String>>,
pub created_at: Option<Timestamp>,
pub x: Option<HashMap<String, String>>,
}Expand description
Profile information response
Fields§
§id_tag: String§name: String§type: Option<String>§profile_pic: Option<String>§status: Option<ProfileStatus>§connected: Option<bool>§following: Option<bool>§follower: Option<bool>§trust: Option<ProfileTrust>Per-profile trust preference controlling proxy-token use on passive reads.
"always" = always authenticate, "never" = never, absent = ask.
roles: Option<Vec<String>>§created_at: Option<Timestamp>§x: Option<HashMap<String, String>>Extensible metadata (profile sections, tab config, etc.)
Trait Implementations§
Source§impl Clone for ProfileInfo
impl Clone for ProfileInfo
Source§fn clone(&self) -> ProfileInfo
fn clone(&self) -> ProfileInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProfileInfo
impl Debug for ProfileInfo
Source§impl<'de> Deserialize<'de> for ProfileInfo
impl<'de> Deserialize<'de> for ProfileInfo
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 ProfileInfo
impl RefUnwindSafe for ProfileInfo
impl Send for ProfileInfo
impl Sync for ProfileInfo
impl Unpin for ProfileInfo
impl UnsafeUnpin for ProfileInfo
impl UnwindSafe for ProfileInfo
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