pub enum PullRequestEvent {
Show 21 variants
Assigned(PullRequestAssigned),
AutoMergeDisabled(PullRequestAutoMergeDisabled),
AutoMergeEnabled(PullRequestAutoMergeEnabled),
Closed(PullRequestClosed),
ConvertedToDraft(PullRequestConvertedToDraft),
Demilestoned(PullRequestDemilestoned),
Dequeued(PullRequestDequeued),
Edited(PullRequestEdited),
Enqueued(PullRequestEnqueued),
Labeled(PullRequestLabeled),
Locked(PullRequestLocked),
Milestoned(PullRequestMilestoned),
Opened(PullRequestOpened),
ReadyForReview(PullRequestReadyForReview),
Reopened(PullRequestReopened),
ReviewRequestRemoved(PullRequestReviewRequestRemoved),
ReviewRequested(PullRequestReviewRequested),
Synchronize(PullRequestSynchronize),
Unassigned(PullRequestUnassigned),
Unlabeled(PullRequestUnlabeled),
Unlocked(PullRequestUnlocked),
}
Expand description
PullRequestEvent
JSON schema
{
"oneOf": [
{
"$ref": "#/definitions/pull_request$assigned"
},
{
"$ref": "#/definitions/pull_request$auto_merge_disabled"
},
{
"$ref": "#/definitions/pull_request$auto_merge_enabled"
},
{
"$ref": "#/definitions/pull_request$closed"
},
{
"$ref": "#/definitions/pull_request$converted_to_draft"
},
{
"$ref": "#/definitions/pull_request$demilestoned"
},
{
"$ref": "#/definitions/pull_request$dequeued"
},
{
"$ref": "#/definitions/pull_request$edited"
},
{
"$ref": "#/definitions/pull_request$enqueued"
},
{
"$ref": "#/definitions/pull_request$labeled"
},
{
"$ref": "#/definitions/pull_request$locked"
},
{
"$ref": "#/definitions/pull_request$milestoned"
},
{
"$ref": "#/definitions/pull_request$opened"
},
{
"$ref": "#/definitions/pull_request$ready_for_review"
},
{
"$ref": "#/definitions/pull_request$reopened"
},
{
"$ref": "#/definitions/pull_request$review_request_removed"
},
{
"$ref": "#/definitions/pull_request$review_requested"
},
{
"$ref": "#/definitions/pull_request$synchronize"
},
{
"$ref": "#/definitions/pull_request$unassigned"
},
{
"$ref": "#/definitions/pull_request$unlabeled"
},
{
"$ref": "#/definitions/pull_request$unlocked"
}
]
}
Variants§
Assigned(PullRequestAssigned)
AutoMergeDisabled(PullRequestAutoMergeDisabled)
AutoMergeEnabled(PullRequestAutoMergeEnabled)
Closed(PullRequestClosed)
ConvertedToDraft(PullRequestConvertedToDraft)
Demilestoned(PullRequestDemilestoned)
Dequeued(PullRequestDequeued)
Edited(PullRequestEdited)
Enqueued(PullRequestEnqueued)
Labeled(PullRequestLabeled)
Locked(PullRequestLocked)
Milestoned(PullRequestMilestoned)
Opened(PullRequestOpened)
ReadyForReview(PullRequestReadyForReview)
Reopened(PullRequestReopened)
ReviewRequestRemoved(PullRequestReviewRequestRemoved)
ReviewRequested(PullRequestReviewRequested)
Synchronize(PullRequestSynchronize)
Unassigned(PullRequestUnassigned)
Unlabeled(PullRequestUnlabeled)
Unlocked(PullRequestUnlocked)
Trait Implementations§
Source§impl Clone for PullRequestEvent
impl Clone for PullRequestEvent
Source§fn clone(&self) -> PullRequestEvent
fn clone(&self) -> PullRequestEvent
Returns a duplicate 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 PullRequestEvent
impl From<&PullRequestEvent> for PullRequestEvent
Source§fn from(value: &PullRequestEvent) -> Self
fn from(value: &PullRequestEvent) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestAssigned> for PullRequestEvent
impl From<PullRequestAssigned> for PullRequestEvent
Source§fn from(value: PullRequestAssigned) -> Self
fn from(value: PullRequestAssigned) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestAutoMergeDisabled> for PullRequestEvent
impl From<PullRequestAutoMergeDisabled> for PullRequestEvent
Source§fn from(value: PullRequestAutoMergeDisabled) -> Self
fn from(value: PullRequestAutoMergeDisabled) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestAutoMergeEnabled> for PullRequestEvent
impl From<PullRequestAutoMergeEnabled> for PullRequestEvent
Source§fn from(value: PullRequestAutoMergeEnabled) -> Self
fn from(value: PullRequestAutoMergeEnabled) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestClosed> for PullRequestEvent
impl From<PullRequestClosed> for PullRequestEvent
Source§fn from(value: PullRequestClosed) -> Self
fn from(value: PullRequestClosed) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestConvertedToDraft> for PullRequestEvent
impl From<PullRequestConvertedToDraft> for PullRequestEvent
Source§fn from(value: PullRequestConvertedToDraft) -> Self
fn from(value: PullRequestConvertedToDraft) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestDemilestoned> for PullRequestEvent
impl From<PullRequestDemilestoned> for PullRequestEvent
Source§fn from(value: PullRequestDemilestoned) -> Self
fn from(value: PullRequestDemilestoned) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestDequeued> for PullRequestEvent
impl From<PullRequestDequeued> for PullRequestEvent
Source§fn from(value: PullRequestDequeued) -> Self
fn from(value: PullRequestDequeued) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestEdited> for PullRequestEvent
impl From<PullRequestEdited> for PullRequestEvent
Source§fn from(value: PullRequestEdited) -> Self
fn from(value: PullRequestEdited) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestEnqueued> for PullRequestEvent
impl From<PullRequestEnqueued> for PullRequestEvent
Source§fn from(value: PullRequestEnqueued) -> Self
fn from(value: PullRequestEnqueued) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestLabeled> for PullRequestEvent
impl From<PullRequestLabeled> for PullRequestEvent
Source§fn from(value: PullRequestLabeled) -> Self
fn from(value: PullRequestLabeled) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestLocked> for PullRequestEvent
impl From<PullRequestLocked> for PullRequestEvent
Source§fn from(value: PullRequestLocked) -> Self
fn from(value: PullRequestLocked) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestMilestoned> for PullRequestEvent
impl From<PullRequestMilestoned> for PullRequestEvent
Source§fn from(value: PullRequestMilestoned) -> Self
fn from(value: PullRequestMilestoned) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestOpened> for PullRequestEvent
impl From<PullRequestOpened> for PullRequestEvent
Source§fn from(value: PullRequestOpened) -> Self
fn from(value: PullRequestOpened) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestReadyForReview> for PullRequestEvent
impl From<PullRequestReadyForReview> for PullRequestEvent
Source§fn from(value: PullRequestReadyForReview) -> Self
fn from(value: PullRequestReadyForReview) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestReopened> for PullRequestEvent
impl From<PullRequestReopened> for PullRequestEvent
Source§fn from(value: PullRequestReopened) -> Self
fn from(value: PullRequestReopened) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestReviewRequestRemoved> for PullRequestEvent
impl From<PullRequestReviewRequestRemoved> for PullRequestEvent
Source§fn from(value: PullRequestReviewRequestRemoved) -> Self
fn from(value: PullRequestReviewRequestRemoved) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestReviewRequested> for PullRequestEvent
impl From<PullRequestReviewRequested> for PullRequestEvent
Source§fn from(value: PullRequestReviewRequested) -> Self
fn from(value: PullRequestReviewRequested) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestSynchronize> for PullRequestEvent
impl From<PullRequestSynchronize> for PullRequestEvent
Source§fn from(value: PullRequestSynchronize) -> Self
fn from(value: PullRequestSynchronize) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestUnassigned> for PullRequestEvent
impl From<PullRequestUnassigned> for PullRequestEvent
Source§fn from(value: PullRequestUnassigned) -> Self
fn from(value: PullRequestUnassigned) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestUnlabeled> for PullRequestEvent
impl From<PullRequestUnlabeled> for PullRequestEvent
Source§fn from(value: PullRequestUnlabeled) -> Self
fn from(value: PullRequestUnlabeled) -> Self
Converts to this type from the input type.
Source§impl From<PullRequestUnlocked> for PullRequestEvent
impl From<PullRequestUnlocked> for PullRequestEvent
Source§fn from(value: PullRequestUnlocked) -> Self
fn from(value: PullRequestUnlocked) -> Self
Converts to this type from the input type.
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