Struct github_rest::model::user::PublicUser
source · pub struct PublicUser {Show 15 fields
pub received_events_url: String,
pub bio: Option<String>,
pub blog: Option<String>,
pub company: Option<String>,
pub email: Option<String>,
pub followers: i64,
pub following: i64,
pub hireable: Option<bool>,
pub location: Option<String>,
pub name: Option<String>,
pub public_gists: i64,
pub public_repos: i64,
pub created_at: String,
pub updated_at: String,
pub shared: SimpleUser,
}
Expand description
Embeds SimpleUser
Fields§
§received_events_url: String
§bio: Option<String>
§blog: Option<String>
§company: Option<String>
§email: Option<String>
§followers: i64
§following: i64
§hireable: Option<bool>
§location: Option<String>
§name: Option<String>
§public_gists: i64
§public_repos: i64
§created_at: String
§updated_at: String
Methods from Deref<Target = 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,
Trait Implementations§
source§impl AsRef<PublicUser> for PrivateUser
impl AsRef<PublicUser> for PrivateUser
source§fn as_ref(&self) -> &PublicUser
fn as_ref(&self) -> &PublicUser
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 PublicUser
impl Clone for PublicUser
source§fn clone(&self) -> PublicUser
fn clone(&self) -> PublicUser
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 PublicUser
impl Debug for PublicUser
source§impl Default for PublicUser
impl Default for PublicUser
source§fn default() -> PublicUser
fn default() -> PublicUser
Returns the “default value” for a type. Read more
source§impl Deref for PublicUser
impl Deref for PublicUser
source§impl<'de> Deserialize<'de> for PublicUser
impl<'de> Deserialize<'de> for PublicUser
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<PublicUser> for PublicUser
impl PartialEq<PublicUser> for PublicUser
source§fn eq(&self, other: &PublicUser) -> bool
fn eq(&self, other: &PublicUser) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PublicUser
impl Serialize for PublicUser
impl StructuralPartialEq for PublicUser
Auto Trait Implementations§
impl RefUnwindSafe for PublicUser
impl Send for PublicUser
impl Sync for PublicUser
impl Unpin for PublicUser
impl UnwindSafe for PublicUser
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