pub struct ProfileInfo {Show 15 fields
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 feed_read_at: Option<Timestamp>,
pub msg_read_at: Option<Timestamp>,
pub hidden_in_home: Option<bool>,
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>§feed_read_at: Option<Timestamp>Reader’s feed read-watermark for this context (seeds useReadMarker).
ISO 8601 string (round-trips with PUT /api/read-marker’s position).
msg_read_at: Option<Timestamp>Reader’s DM read-watermark for this peer (seeds useReadMarker).
ISO 8601 string (round-trips with PUT /api/read-marker’s position).
Composition control for the home feed (community profiles): Some(true) =
hidden from the merged home feed. Absent/None = shown (the default).
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 Default for ProfileInfo
impl Default for ProfileInfo
Source§fn default() -> ProfileInfo
fn default() -> ProfileInfo
Returns the “default value” for a type. Read more
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