gr::api_traits

Trait UserInfo

source
pub trait UserInfo {
    // Required methods
    fn get_auth_user(&self) -> Result<Member>;
    fn get(&self, args: &UserCliArgs) -> Result<Member>;
}

Required Methods§

source

fn get_auth_user(&self) -> Result<Member>

Get the user’s information from the remote API.

source

fn get(&self, args: &UserCliArgs) -> Result<Member>

Implementors§

source§

impl<R: HttpRunner<Response = Response>> UserInfo for Github<R>

source§

impl<R: HttpRunner<Response = Response>> UserInfo for Gitlab<R>