pub struct Client { /* private fields */ }Expand description
Client is a struct that represents a client to the Codecov API.
Implementations§
Source§impl Client
impl Client
pub fn new_from_env() -> Result<Client, Error>
pub fn new(token: String) -> Client
Sourcepub fn get_all_repos(&self, owner: &Owner) -> Result<Vec<Repo>, Error>
pub fn get_all_repos(&self, owner: &Owner) -> Result<Vec<Repo>, Error>
get_all_repos returns a list of all repos for a given owner. /repos endpoint returns a list of repos for a given owner with pagination. This function will make multiple requests to get all repos.
pub fn get_commits(&self, author: &Author) -> Result<CommitsAPIResponse, Error>
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl UnwindSafe for Client
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