#[non_exhaustive]pub struct PullRequest {
pub state: PullRequestState,
pub last_reopen_by_other: Option<Reopen>,
}Expand description
One pull request, as crate::Forge::pull_request reads it now.
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.state: PullRequestStateOpen, closed or merged.
last_reopen_by_other: Option<Reopen>The most recent reopen by an account other than the adapter’s
own (its App or bot), if there was one. closePullRequest stands
down when this is later than the job: an owner’s or maintainer’s
reopen is a newer fact than the VTC’s order to close.
Implementations§
Source§impl PullRequest
impl PullRequest
Sourcepub fn new(state: PullRequestState) -> Self
pub fn new(state: PullRequestState) -> Self
A pull request in state, never reopened by anyone else.
Sourcepub fn with_reopen(self, reopen: Reopen) -> Self
pub fn with_reopen(self, reopen: Reopen) -> Self
With the most recent reopen by another account.
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
impl Eq for PullRequest
Source§impl PartialEq for PullRequest
impl PartialEq for PullRequest
Source§impl Serialize for PullRequest
impl Serialize for PullRequest
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