pub struct Account { /* private fields */ }
Expand description
GitHub account
GitHub references accounts in many events and API responses. Accounts are a lightweight representation of three other resources: bots, users, and organizations. They provide a unified interface to information that is shared between all account types, and hide a lot of information that would unnecessarily increase payload sizes.
Implementations§
Source§impl Account
impl Account
Sourcepub fn avatar_url(&self) -> &Url
pub fn avatar_url(&self) -> &Url
Returns the URl to the account’s avatar.
Sourcepub fn followers_url(&self) -> &Url
pub fn followers_url(&self) -> &Url
Returns the API endpoint to query the account’s followers.
Sourcepub fn following_url(&self) -> &Url
pub fn following_url(&self) -> &Url
Returns the API endpoint to query the accounts that this account follows.
Sourcepub fn starred_url(&self) -> &Url
pub fn starred_url(&self) -> &Url
Returns the API endpoint to query the repositories that the account has starred.
Sourcepub fn subscriptions_url(&self) -> &Url
pub fn subscriptions_url(&self) -> &Url
Returns the API endpoint to query the account’s subscriptions.
Sourcepub fn organizations_url(&self) -> &Url
pub fn organizations_url(&self) -> &Url
Returns the API endpoint to query the account’s organizations.
Sourcepub fn events_url(&self) -> &Url
pub fn events_url(&self) -> &Url
Returns the API endpoint to query the account’s events.
Sourcepub fn received_events_url(&self) -> &Url
pub fn received_events_url(&self) -> &Url
Returns the API endpoint to query the events that the account has received.
Sourcepub fn site_admin(&self) -> bool
pub fn site_admin(&self) -> bool
Indicates whether the account is a site admin.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Account
impl<'de> Deserialize<'de> for Account
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>,
Source§impl Ord for Account
impl Ord for Account
Source§impl PartialOrd for Account
impl PartialOrd for Account
impl Eq for Account
impl StructuralPartialEq for Account
Auto Trait Implementations§
impl Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.