Enum PullRequestEvent

Source
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§

Trait Implementations§

Source§

impl Clone for PullRequestEvent

Source§

fn clone(&self) -> PullRequestEvent

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PullRequestEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for PullRequestEvent

Source§

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

Source§

fn from(value: &PullRequestEvent) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestAssigned> for PullRequestEvent

Source§

fn from(value: PullRequestAssigned) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestAutoMergeDisabled> for PullRequestEvent

Source§

fn from(value: PullRequestAutoMergeDisabled) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestAutoMergeEnabled> for PullRequestEvent

Source§

fn from(value: PullRequestAutoMergeEnabled) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestClosed> for PullRequestEvent

Source§

fn from(value: PullRequestClosed) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestConvertedToDraft> for PullRequestEvent

Source§

fn from(value: PullRequestConvertedToDraft) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestDemilestoned> for PullRequestEvent

Source§

fn from(value: PullRequestDemilestoned) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestDequeued> for PullRequestEvent

Source§

fn from(value: PullRequestDequeued) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestEdited> for PullRequestEvent

Source§

fn from(value: PullRequestEdited) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestEnqueued> for PullRequestEvent

Source§

fn from(value: PullRequestEnqueued) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestLabeled> for PullRequestEvent

Source§

fn from(value: PullRequestLabeled) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestLocked> for PullRequestEvent

Source§

fn from(value: PullRequestLocked) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestMilestoned> for PullRequestEvent

Source§

fn from(value: PullRequestMilestoned) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestOpened> for PullRequestEvent

Source§

fn from(value: PullRequestOpened) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestReadyForReview> for PullRequestEvent

Source§

fn from(value: PullRequestReadyForReview) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestReopened> for PullRequestEvent

Source§

fn from(value: PullRequestReopened) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestReviewRequestRemoved> for PullRequestEvent

Source§

fn from(value: PullRequestReviewRequestRemoved) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestReviewRequested> for PullRequestEvent

Source§

fn from(value: PullRequestReviewRequested) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestSynchronize> for PullRequestEvent

Source§

fn from(value: PullRequestSynchronize) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestUnassigned> for PullRequestEvent

Source§

fn from(value: PullRequestUnassigned) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestUnlabeled> for PullRequestEvent

Source§

fn from(value: PullRequestUnlabeled) -> Self

Converts to this type from the input type.
Source§

impl From<PullRequestUnlocked> for PullRequestEvent

Source§

fn from(value: PullRequestUnlocked) -> Self

Converts to this type from the input type.
Source§

impl Serialize for PullRequestEvent

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,