pub struct GithubAPIClient { /* private fields */ }
Implementations§
Source§impl GithubAPIClient
impl GithubAPIClient
pub fn new(api_config: GithubAPIConfig) -> Self
pub fn with_token<T>(token: T) -> Selfwhere
T: ExpirableToken + 'static,
pub fn get<R>(&self, url: impl Into<String>) -> GithubAPIRequest<R>
pub fn post<R>(&self, url: impl Into<String>) -> GithubAPIRequest<R>
pub fn put<R>(&self, url: impl Into<String>) -> GithubAPIRequest<R>
pub fn patch<R>(&self, url: impl Into<String>) -> GithubAPIRequest<R>
pub fn delete<R>(&self, url: impl Into<String>) -> GithubAPIRequest<R>
Trait Implementations§
Source§impl Clone for GithubAPIClient
impl Clone for GithubAPIClient
Source§fn clone(&self) -> GithubAPIClient
fn clone(&self) -> GithubAPIClient
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for GithubAPIClient
impl !RefUnwindSafe for GithubAPIClient
impl Send for GithubAPIClient
impl Sync for GithubAPIClient
impl Unpin for GithubAPIClient
impl !UnwindSafe for GithubAPIClient
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