Trait Client
Source pub trait Client: Send + Sync {
// Required methods
fn set_token(&mut self, token: &str) -> Result<(), Error>;
fn set_proxy(&mut self, proxy: &str) -> Result<(), Error>;
fn user(&self) -> Box<dyn User>;
fn org(&self) -> Box<dyn Org>;
fn repo(&self) -> Box<dyn Repo>;
fn commit(&self) -> Box<dyn Commit>;
fn issue(&self) -> Box<dyn Issue>;
fn release(&self) -> Box<dyn Release>;
}
设置访问令牌
ⓘclient.set_token("token").unwrap();
设置代理
ⓘclient.set_proxy("http://127.0.0.1:7890").unwrap();