Struct hubcaps::pulls::PullRequests
[−]
[src]
pub struct PullRequests<'a> { /* fields omitted */ }
A structure for interfacing with a repositories list of pull requests
Methods
impl<'a> PullRequests<'a>
[src]
fn new<O, R>(github: &'a Github, owner: O, repo: R) -> PullRequests<'a> where
O: Into<String>,
R: Into<String>,
O: Into<String>,
R: Into<String>,
Creates a new instance
Use github.repo(..).pulls()
instead
fn get(&self, number: u64) -> PullRequest
Get a reference to a strucuture for interfacing with a specific pull request
fn create(&self, pr: &PullOptions) -> Result<Pull>
Create a new pull request
fn list(&self, options: &PullListOptions) -> Result<Vec<Pull>>
list pull requests
fn iter(&self, options: &PullListOptions) -> Result<Iter<Vec<Pull>, Pull>>
provides an iterator over all pages of pull requests