pub struct UserProfile {Show 13 fields
pub login: String,
pub id: u64,
pub avatar_url: Option<String>,
pub name: Option<String>,
pub email: Option<String>,
pub bio: Option<String>,
pub location: Option<String>,
pub blog: Option<String>,
pub public_repos: u64,
pub followers: u64,
pub following: u64,
pub created_at: String,
pub updated_at: String,
}Expand description
User profile for public API responses (GitHub-compatible).
Fields§
§login: StringUsername (GitHub calls this “login”).
id: u64User ID.
avatar_url: Option<String>Avatar URL.
name: Option<String>Display name.
email: Option<String>Public email (if enabled).
bio: Option<String>Biography.
location: Option<String>Location.
blog: Option<String>Website/blog URL.
public_repos: u64Number of public repositories.
followers: u64Number of followers.
following: u64Number of users following.
created_at: StringISO 8601 creation timestamp.
updated_at: StringISO 8601 last update timestamp.
Trait Implementations§
Source§impl Clone for UserProfile
impl Clone for UserProfile
Source§fn clone(&self) -> UserProfile
fn clone(&self) -> UserProfile
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 UserProfile
impl Debug for UserProfile
Source§impl<'de> Deserialize<'de> for UserProfile
impl<'de> Deserialize<'de> for UserProfile
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 UserProfile
impl RefUnwindSafe for UserProfile
impl Send for UserProfile
impl Sync for UserProfile
impl Unpin for UserProfile
impl UnsafeUnpin for UserProfile
impl UnwindSafe for UserProfile
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