pub struct PublicUser {Show 19 fields
pub id: UserId,
pub username: String,
pub given_name: String,
pub family_name: String,
pub profile_image: Option<ImageId>,
pub following: bool,
pub bio: Option<String>,
pub badge: Option<UserBadge>,
pub languages_spoken: Option<Vec<String>>,
pub organization: Option<String>,
pub persona: Option<Vec<String>>,
pub country_short: Option<String>,
pub country_long: Option<String>,
pub circles: Vec<CircleId>,
pub jig_count: u64,
pub resource_count: u64,
pub course_count: u64,
pub playlist_count: u64,
pub total_asset_count: u64,
}
Expand description
A lite profile for other Users to view
Fields§
§id: UserId
User Id
username: String
Username of User
given_name: String
First name of User
family_name: String
Lastname of User
profile_image: Option<ImageId>
Profile image of User
following: bool
following this user or not
bio: Option<String>
Bio of User
badge: Option<UserBadge>
Badge associated with User
languages_spoken: Option<Vec<String>>
Language spoken of User
organization: Option<String>
Organization of User
persona: Option<Vec<String>>
Persona of User
country_short: Option<String>
Country of User
country_long: Option<String>
Country of User
circles: Vec<CircleId>
Circles associated with User
jig_count: u64
Number of Jigs
resource_count: u64
Number of Resources
course_count: u64
Number of Courses
playlist_count: u64
Number of playlists
total_asset_count: u64
Total number of assets
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 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