pub struct AuthenticatedUser {Show 23 fields
pub login: String,
pub id: u64,
pub avatar_url: String,
pub gravatar_id: String,
pub url: String,
pub html_url: String,
pub followers_url: String,
pub following_url: String,
pub gists_url: String,
pub starred_url: String,
pub subscriptions_url: String,
pub organizations_url: String,
pub repos_url: String,
pub events_url: String,
pub received_events_url: String,
pub site_admin: bool,
pub name: Option<String>,
pub company: Option<String>,
pub blog: String,
pub location: Option<String>,
pub email: Option<String>,
pub hireable: Option<bool>,
pub bio: Option<String>,
}
Expand description
Information about the current authenticated user.
Fields§
§login: String
§id: u64
§avatar_url: String
§gravatar_id: String
§url: String
§html_url: String
§followers_url: String
§following_url: String
§gists_url: String
§starred_url: String
§subscriptions_url: String
§organizations_url: String
§repos_url: String
§events_url: String
§received_events_url: String
§site_admin: bool
§name: Option<String>
§company: Option<String>
§blog: String
§location: Option<String>
§email: Option<String>
§hireable: Option<bool>
§bio: Option<String>
Trait Implementations§
Source§impl Clone for AuthenticatedUser
impl Clone for AuthenticatedUser
Source§fn clone(&self) -> AuthenticatedUser
fn clone(&self) -> AuthenticatedUser
Returns a copy 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 AuthenticatedUser
impl Debug for AuthenticatedUser
Source§impl<'de> Deserialize<'de> for AuthenticatedUser
impl<'de> Deserialize<'de> for AuthenticatedUser
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
Source§impl Hash for AuthenticatedUser
impl Hash for AuthenticatedUser
Source§impl Ord for AuthenticatedUser
impl Ord for AuthenticatedUser
Source§fn cmp(&self, other: &AuthenticatedUser) -> Ordering
fn cmp(&self, other: &AuthenticatedUser) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AuthenticatedUser
impl PartialEq for AuthenticatedUser
Source§impl PartialOrd for AuthenticatedUser
impl PartialOrd for AuthenticatedUser
impl Eq for AuthenticatedUser
impl StructuralPartialEq for AuthenticatedUser
Auto Trait Implementations§
impl Freeze for AuthenticatedUser
impl RefUnwindSafe for AuthenticatedUser
impl Send for AuthenticatedUser
impl Sync for AuthenticatedUser
impl Unpin for AuthenticatedUser
impl UnwindSafe for AuthenticatedUser
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