Struct github_rest::model::user::PrivateUser   
source · pub struct PrivateUser {
    pub collaborators: i64,
    pub disk_usage: i64,
    pub total_private_repos: i64,
    pub owned_private_repos: i64,
    pub private_gists: i64,
    pub two_factor_authentication: i64,
    pub shared: PublicUser,
}Expand description
Embeds PublicUser
Fields§
§collaborators: i64§disk_usage: i64§total_private_repos: i64§owned_private_repos: i64§private_gists: i64§two_factor_authentication: i64Methods 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 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 Clone for PrivateUser
 
impl Clone for PrivateUser
source§fn clone(&self) -> PrivateUser
 
fn clone(&self) -> PrivateUser
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 PrivateUser
 
impl Debug for PrivateUser
source§impl Default for PrivateUser
 
impl Default for PrivateUser
source§fn default() -> PrivateUser
 
fn default() -> PrivateUser
Returns the “default value” for a type. Read more
source§impl Deref for PrivateUser
 
impl Deref for PrivateUser
source§impl<'de> Deserialize<'de> for PrivateUser
 
impl<'de> Deserialize<'de> for PrivateUser
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<PrivateUser> for PrivateUser
 
impl PartialEq<PrivateUser> for PrivateUser
source§fn eq(&self, other: &PrivateUser) -> bool
 
fn eq(&self, other: &PrivateUser) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl Serialize for PrivateUser
 
impl Serialize for PrivateUser
impl StructuralPartialEq for PrivateUser
Auto Trait Implementations§
impl RefUnwindSafe for PrivateUser
impl Send for PrivateUser
impl Sync for PrivateUser
impl Unpin for PrivateUser
impl UnwindSafe for PrivateUser
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