pub struct UserSummary {
pub id: i32,
pub address: String,
pub username: Option<String>,
pub avatar: Option<String>,
pub bio: Option<String>,
pub likes: i32,
pub is_admin: Option<bool>,
pub twitter_username: Option<String>,
}Expand description
Public profile record.
Fields§
§id: i32Internal user id.
address: StringWallet address.
username: Option<String>Display name, when set.
avatar: Option<String>Avatar URL, when set.
bio: Option<String>Free-text bio.
likes: i32Profile likes received.
is_admin: Option<bool>true for Fyuz staff accounts.
twitter_username: Option<String>X/Twitter handle, no @.
Trait Implementations§
Source§impl Clone for UserSummary
impl Clone for UserSummary
Source§impl Debug for UserSummary
impl Debug for UserSummary
Source§impl<'de> Deserialize<'de> for UserSummary
impl<'de> Deserialize<'de> for UserSummary
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 UserSummary
impl RefUnwindSafe for UserSummary
impl Send for UserSummary
impl Sync for UserSummary
impl Unpin for UserSummary
impl UnsafeUnpin for UserSummary
impl UnwindSafe for UserSummary
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