Struct automatons_github::resource::Account
source · [−]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
sourceimpl 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
sourceimpl<'de> Deserialize<'de> for Account
impl<'de> Deserialize<'de> for Account
sourcefn 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>,
sourceimpl Ord for Account
impl Ord for Account
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialOrd<Account> for Account
impl PartialOrd<Account> for Account
sourcefn partial_cmp(&self, other: &Account) -> Option<Ordering>
fn partial_cmp(&self, other: &Account) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Account
impl StructuralEq for Account
impl StructuralPartialEq for Account
Auto Trait Implementations
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.