pub struct PullRequestEvent {
pub action: PullRequestAction,
pub number: u64,
pub pull_request: PullRequest,
pub repository: Repository,
pub sender: User,
pub installation: Option<InstallationId>,
}
Fields§
§action: PullRequestAction
The action that was performed. Can be one of “assigned”, “unassigned”,
“review_requested”, “review_request_removed”, “labeled”, “unlabeled”,
“opened”, “edited”, “closed”, or “reopened”. If the action is “closed”
and the merged
key is false
, the pull request was closed with
unmerged commits. If the action is “closed” and the merged
key is
true
, the pull request was merged. While webhooks are also triggered
when a pull request is synchronized, Events API timelines don’t include
pull request events with the “synchronize” action.
number: u64
The pull request number.
pull_request: PullRequest
The pull request itself.
repository: Repository
The repository associated with this event.
sender: User
The user who triggered the event.
installation: Option<InstallationId>
The App installation ID. This is only present for GitHub App events.
Trait Implementations§
Source§impl AppEvent for PullRequestEvent
impl AppEvent for PullRequestEvent
Source§fn installation(&self) -> Option<u64>
fn installation(&self) -> Option<u64>
Returns the installation ID for the event.
Source§impl Clone for PullRequestEvent
impl Clone for PullRequestEvent
Source§fn clone(&self) -> PullRequestEvent
fn clone(&self) -> PullRequestEvent
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 PullRequestEvent
impl Debug for PullRequestEvent
Source§impl<'de> Deserialize<'de> for PullRequestEvent
impl<'de> Deserialize<'de> for PullRequestEvent
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
Source§impl From<PullRequestEvent> for Event
impl From<PullRequestEvent> for Event
Source§fn from(original: PullRequestEvent) -> Event
fn from(original: PullRequestEvent) -> Event
Converts to this type from the input type.
Source§impl Hash for PullRequestEvent
impl Hash for PullRequestEvent
Source§impl Ord for PullRequestEvent
impl Ord for PullRequestEvent
Source§fn cmp(&self, other: &PullRequestEvent) -> Ordering
fn cmp(&self, other: &PullRequestEvent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PullRequestEvent
impl PartialEq for PullRequestEvent
Source§impl PartialOrd for PullRequestEvent
impl PartialOrd for PullRequestEvent
impl Eq for PullRequestEvent
impl StructuralPartialEq for PullRequestEvent
Auto Trait Implementations§
impl Freeze for PullRequestEvent
impl RefUnwindSafe for PullRequestEvent
impl Send for PullRequestEvent
impl Sync for PullRequestEvent
impl Unpin for PullRequestEvent
impl UnwindSafe for PullRequestEvent
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