pub struct PublicUser {
pub username: String,
pub name: Option<String>,
pub profile_picture_url: Option<String>,
pub biography: Option<String>,
pub is_verified: bool,
pub follower_count: i64,
pub likes_count: i64,
pub quotes_count: i64,
pub replies_count: i64,
pub reposts_count: i64,
pub views_count: i64,
}Expand description
A public Threads user profile (via threads_profile_discovery scope).
Fields§
§username: StringUsername.
name: Option<String>Display name (may be absent on some profiles).
profile_picture_url: Option<String>Profile picture URL.
biography: Option<String>User biography.
is_verified: boolWhether the user is verified.
follower_count: i64Follower count.
likes_count: i64Total likes count.
quotes_count: i64Total quotes count.
replies_count: i64Total replies count.
reposts_count: i64Total reposts count.
views_count: i64Total views count.
Trait Implementations§
Source§impl Clone for PublicUser
impl Clone for PublicUser
Source§fn clone(&self) -> PublicUser
fn clone(&self) -> PublicUser
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 PublicUser
impl Debug for PublicUser
Source§impl<'de> Deserialize<'de> for PublicUser
impl<'de> Deserialize<'de> for PublicUser
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 PublicUser
impl RefUnwindSafe for PublicUser
impl Send for PublicUser
impl Sync for PublicUser
impl Unpin for PublicUser
impl UnsafeUnpin for PublicUser
impl UnwindSafe for PublicUser
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