pub struct Users { /* private fields */ }Expand description
Query user information
Implementations§
Source§impl Users
impl Users
pub fn new(github: Github) -> Self
Sourcepub fn authenticated(&self) -> Future<AuthenticatedUser>
pub fn authenticated(&self) -> Future<AuthenticatedUser>
Information about current authenticated user
Sourcepub fn authenticated_emails(&self) -> Future<Vec<UserEmail>>
pub fn authenticated_emails(&self) -> Future<Vec<UserEmail>>
Get current authenticated user’s email list
pub fn get<U>(&self, username: U) -> Future<User>
Auto Trait Implementations§
impl Freeze for Users
impl !RefUnwindSafe for Users
impl Send for Users
impl Sync for Users
impl Unpin for Users
impl !UnwindSafe for Users
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