#[non_exhaustive]pub struct PullRequest {
pub number: u64,
pub title: String,
pub state: String,
pub merged: bool,
pub head_branch: String,
pub base_branch: String,
pub url: String,
}Expand description
A pull request (tea pr list --output json), flattened from tea’s table
columns (index/title/state/head/base/url).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.number: u64PR number (tea’s index column).
title: StringPR title.
state: StringState, e.g. "open", "closed", "merged" — tea folds the merge flag
into this column (a merged PR reads "merged", not "closed").
merged: boolWhether the PR has been merged — derived from state == "merged" (tea has
no separate merged column).
head_branch: StringSource (head) branch name (tea’s head column, a flat branch name).
base_branch: StringTarget (base) branch name (tea’s base column, a flat branch name).
url: StringWeb URL (tea’s url column).
Trait Implementations§
Source§impl Clone for PullRequest
impl Clone for PullRequest
Source§fn clone(&self) -> PullRequest
fn clone(&self) -> PullRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PullRequest
impl Debug for PullRequest
impl Eq for PullRequest
Source§impl PartialEq for PullRequest
impl PartialEq for PullRequest
Source§fn eq(&self, other: &PullRequest) -> bool
fn eq(&self, other: &PullRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PullRequest
Auto Trait Implementations§
impl Freeze for PullRequest
impl RefUnwindSafe for PullRequest
impl Send for PullRequest
impl Sync for PullRequest
impl Unpin for PullRequest
impl UnsafeUnpin for PullRequest
impl UnwindSafe for PullRequest
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