Struct github_rest::model::user::SimpleUser
source · pub struct SimpleUser {Show 18 fields
pub avatar_url: String,
pub events_url: String,
pub followers_url: String,
pub following_url: String,
pub gists_url: String,
pub html_url: String,
pub repos_url: String,
pub subscriptions_url: String,
pub organizations_url: String,
pub starred_url: String,
pub received_events_url: String,
pub gravatar_id: Option<String>,
pub id: i64,
pub node_id: String,
pub login: String,
pub site_admin: bool,
pub url: String,
pub type_field: String,
}
Fields§
§avatar_url: String
§events_url: String
§followers_url: String
§following_url: String
§gists_url: String
§html_url: String
§repos_url: String
§subscriptions_url: String
§organizations_url: String
§starred_url: String
§received_events_url: String
§gravatar_id: Option<String>
§id: i64
§node_id: String
§login: String
§site_admin: bool
§url: String
§type_field: String
Implementations§
source§impl SimpleUser
impl SimpleUser
pub async fn add_to_org<T, A>( &self, client: &T, org: A, role: Option<Role> ) -> Result<AddToOrgResponse, GithubRestError>where T: Requester, A: Into<String> + Send,
pub async fn get_following<T>( &self, client: &T, followers_per_page: Option<u8>, page_number: Option<u8> ) -> Result<Vec<SimpleUser>, GithubRestError>where T: Requester,
pub async fn get_followers<T>( self, client: &T, followers_per_page: Option<u8>, page_number: Option<u8> ) -> Result<Vec<SimpleUser>, GithubRestError>where T: Requester,
Trait Implementations§
source§impl AsRef<SimpleUser> for PrivateUser
impl AsRef<SimpleUser> for PrivateUser
source§fn as_ref(&self) -> &SimpleUser
fn as_ref(&self) -> &SimpleUser
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<SimpleUser> for PublicUser
impl AsRef<SimpleUser> for PublicUser
source§fn as_ref(&self) -> &SimpleUser
fn as_ref(&self) -> &SimpleUser
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for SimpleUser
impl Clone for SimpleUser
source§fn clone(&self) -> SimpleUser
fn clone(&self) -> SimpleUser
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 SimpleUser
impl Debug for SimpleUser
source§impl Default for SimpleUser
impl Default for SimpleUser
source§fn default() -> SimpleUser
fn default() -> SimpleUser
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SimpleUser
impl<'de> Deserialize<'de> for SimpleUser
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 PartialEq<SimpleUser> for SimpleUser
impl PartialEq<SimpleUser> for SimpleUser
source§fn eq(&self, other: &SimpleUser) -> bool
fn eq(&self, other: &SimpleUser) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SimpleUser
impl Serialize for SimpleUser
impl StructuralPartialEq for SimpleUser
Auto Trait Implementations§
impl RefUnwindSafe for SimpleUser
impl Send for SimpleUser
impl Sync for SimpleUser
impl Unpin for SimpleUser
impl UnwindSafe for SimpleUser
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