Struct ghrs::pulls::PullsHandler [−][src]
A client for the Pull Request API.
Implementations
impl<'a> PullsHandler<'a>
[src]
pub fn new(
client: &'a Client,
owner: impl Into<String>,
repo: impl Into<String>
) -> PullsHandler<'_>
[src]
client: &'a Client,
owner: impl Into<String>,
repo: impl Into<String>
) -> PullsHandler<'_>
pub fn list(&self) -> ListPullRequestsBuilder<'_>
[src]
List pull requests.
See https://docs.github.com/en/rest/reference/pulls#list-pull-requests.
let client = ghrs::Client::new(); let pull_requests = client.pulls("owner", "repo").list().per_page(100).send();
pub fn get(&self, pull_number: u64) -> GetPullRequestBuilder<'_>
[src]
Get a pull request.
See https://docs.github.com/en/rest/reference/pulls#get-a-pull-request.
let client = ghrs::Client::new(); let pull_request = client.pulls("owner", "repo").get(1234).send();
Auto Trait Implementations
impl<'a> RefUnwindSafe for PullsHandler<'a>
[src]
impl<'a> Send for PullsHandler<'a>
[src]
impl<'a> Sync for PullsHandler<'a>
[src]
impl<'a> Unpin for PullsHandler<'a>
[src]
impl<'a> UnwindSafe for PullsHandler<'a>
[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>,