Struct github_rest::methods::GetPullsBody
source · pub struct GetPullsBody {
pub state: Option<PullRequestState>,
pub head: Option<String>,
pub base: Option<String>,
pub sort: Option<String>,
pub direction: Option<String>,
pub since: Option<String>,
pub per_page: Option<String>,
pub page: Option<String>,
}
Fields§
§state: Option<PullRequestState>
Either open, closed, or all to filter by state. Default: open
head: Option<String>
Filter pulls by head user or head organization and branch name in the format of user:ref-name or organization:ref-name. For example: github:new-script-format or octocat:test-branch.
base: Option<String>
Filter pulls by base branch name. Example: gh-pages.
sort: Option<String>
What to sort results by. Can be either created, updated, popularity (comment count) or long-running (age, filtering by pulls updated in the last month). Default: created
direction: Option<String>
One of asc (ascending) or desc (descending). Default: desc
since: Option<String>
Only show notifications updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
per_page: Option<String>
Results per page (max 100) Default: 30
page: Option<String>
Page number of the results to fetch. Default: 1
Trait Implementations§
source§impl Clone for GetPullsBody
impl Clone for GetPullsBody
source§fn clone(&self) -> GetPullsBody
fn clone(&self) -> GetPullsBody
Returns a copy 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 moresource§impl Debug for GetPullsBody
impl Debug for GetPullsBody
source§impl Default for GetPullsBody
impl Default for GetPullsBody
source§fn default() -> GetPullsBody
fn default() -> GetPullsBody
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GetPullsBody
impl<'de> Deserialize<'de> for GetPullsBody
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for GetPullsBody
impl Send for GetPullsBody
impl Sync for GetPullsBody
impl Unpin for GetPullsBody
impl UnwindSafe for GetPullsBody
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