github_actions_models::workflow::event

Struct Events

Source
pub struct Events {
Show 27 fields pub branch_protection_rule: OptionalBody<GenericEvent>, pub check_run: OptionalBody<GenericEvent>, pub check_suite: OptionalBody<GenericEvent>, pub discussion: OptionalBody<GenericEvent>, pub discussion_comment: OptionalBody<GenericEvent>, pub issue_comment: OptionalBody<GenericEvent>, pub issues: OptionalBody<GenericEvent>, pub label: OptionalBody<GenericEvent>, pub merge_group: OptionalBody<GenericEvent>, pub milestone: OptionalBody<GenericEvent>, pub project: OptionalBody<GenericEvent>, pub project_card: OptionalBody<GenericEvent>, pub project_column: OptionalBody<GenericEvent>, pub pull_request: OptionalBody<PullRequest>, pub pull_request_comment: OptionalBody<GenericEvent>, pub pull_request_review: OptionalBody<GenericEvent>, pub pull_request_review_comment: OptionalBody<GenericEvent>, pub pull_request_target: OptionalBody<PullRequest>, pub push: OptionalBody<Push>, pub registry_package: OptionalBody<GenericEvent>, pub release: OptionalBody<GenericEvent>, pub repository_dispatch: OptionalBody<GenericEvent>, pub schedule: OptionalBody<Vec<Cron>>, pub watch: OptionalBody<GenericEvent>, pub workflow_call: OptionalBody<WorkflowCall>, pub workflow_dispatch: OptionalBody<WorkflowDispatch>, pub workflow_run: OptionalBody<WorkflowRun>,
}
Expand description

Workflow event triggers, with bodies.

Like BareEvent, but with per-event properties.

Fields§

§branch_protection_rule: OptionalBody<GenericEvent>§check_run: OptionalBody<GenericEvent>§check_suite: OptionalBody<GenericEvent>§discussion: OptionalBody<GenericEvent>§discussion_comment: OptionalBody<GenericEvent>§issue_comment: OptionalBody<GenericEvent>§issues: OptionalBody<GenericEvent>§label: OptionalBody<GenericEvent>§merge_group: OptionalBody<GenericEvent>§milestone: OptionalBody<GenericEvent>§project: OptionalBody<GenericEvent>§project_card: OptionalBody<GenericEvent>§project_column: OptionalBody<GenericEvent>§pull_request: OptionalBody<PullRequest>§pull_request_comment: OptionalBody<GenericEvent>§pull_request_review: OptionalBody<GenericEvent>§pull_request_review_comment: OptionalBody<GenericEvent>§pull_request_target: OptionalBody<PullRequest>§push: OptionalBody<Push>§registry_package: OptionalBody<GenericEvent>§release: OptionalBody<GenericEvent>§repository_dispatch: OptionalBody<GenericEvent>§schedule: OptionalBody<Vec<Cron>>§watch: OptionalBody<GenericEvent>§workflow_call: OptionalBody<WorkflowCall>§workflow_dispatch: OptionalBody<WorkflowDispatch>§workflow_run: OptionalBody<WorkflowRun>

Trait Implementations§

Source§

impl Default for Events

Source§

fn default() -> Events

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Events
where Events: Default,

Source§

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 Events

§

impl RefUnwindSafe for Events

§

impl Send for Events

§

impl Sync for Events

§

impl Unpin for Events

§

impl UnwindSafe for Events

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> 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, 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>,