Struct ghrs::Client [−][src]
A client for GitHub v3 API.
Implementations
impl Client
[src]
pub fn new() -> Client
[src]
Create a Client
.
pub fn token(self, token: impl Into<String>) -> Self
[src]
Set a personal access token.
let client = ghrs::Client::new(); let issues = client.token("your_token").issues("owner", "repo").list().send();
pub fn base_url(self, base_url: impl Into<String>) -> Self
[src]
Set a base URL.
let client = ghrs::Client::new(); let issues = client.base_url("https://github.your_company.com/api/v3").token("your_token").issues("owner", "repo").list().send();
pub fn issues(
&self,
owner: impl Into<String>,
repo: impl Into<String>
) -> IssuesHandler<'_>
[src]
&self,
owner: impl Into<String>,
repo: impl Into<String>
) -> IssuesHandler<'_>
Create a issues::IssuesHandler
.
pub fn pulls(
&self,
owner: impl Into<String>,
repo: impl Into<String>
) -> PullsHandler<'_>
[src]
&self,
owner: impl Into<String>,
repo: impl Into<String>
) -> PullsHandler<'_>
Create a pulls::PullsHandler
.
pub fn events(&self) -> EventsHandler<'_>
[src]
Create a events::EventsHandler
.
Auto Trait Implementations
impl RefUnwindSafe for Client
[src]
impl Send for Client
[src]
impl Sync for Client
[src]
impl Unpin for Client
[src]
impl UnwindSafe for Client
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,