pub struct PullRequest {Show 21 fields
pub id: String,
pub repository: Option<String>,
pub number: Option<i64>,
pub title: String,
pub description: Option<String>,
pub author: User,
pub status: PullRequestStatus,
pub is_draft: bool,
pub source_ref: Option<String>,
pub target_ref: Option<String>,
pub reviewers: Vec<Reviewer>,
pub labels: Vec<String>,
pub checks: CheckStatus,
pub check_summary: Option<CheckSummary>,
pub mergeable: MergeableState,
pub changed_files: i64,
pub additions: i64,
pub deletions: i64,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub url: Option<String>,
}Fields§
§id: String§repository: Option<String>The repository this pull request lives in, connection-relative (acme/pay) — see
crate::repo. None for providers that aren’t repo-addressed (Jira, Linear).
number: Option<i64>§title: String§description: Option<String>§status: PullRequestStatus§is_draft: bool§source_ref: Option<String>§target_ref: Option<String>§reviewers: Vec<Reviewer>§labels: Vec<String>§checks: CheckStatus§check_summary: Option<CheckSummary>§mergeable: MergeableState§changed_files: i64§additions: i64§deletions: i64§created_at: Option<DateTime<Utc>>§updated_at: Option<DateTime<Utc>>§url: Option<String>Implementations§
Source§impl PullRequest
Addressing helpers: each item knows the repository it came from, so a call site never has to
reconstruct one. Use these instead of building an crate::provider::ItemRef by hand.
impl PullRequest
Addressing helpers: each item knows the repository it came from, so a call site never has to
reconstruct one. Use these instead of building an crate::provider::ItemRef by hand.
Trait Implementations§
Source§impl Clone for PullRequest
impl Clone for PullRequest
Source§impl Debug for PullRequest
impl Debug for PullRequest
Source§impl<'de> Deserialize<'de> for PullRequest
impl<'de> Deserialize<'de> for PullRequest
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 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