pub struct WorkflowDispatchEvent {
pub inputs: Option<Map<String, Value>>,
pub installation: Option<InstallationLite>,
pub organization: Option<Organization>,
pub ref_: String,
pub repository: Repository,
pub sender: User,
pub workflow: String,
}
Expand description
WorkflowDispatchEvent
JSON schema
{
"title": "workflow_dispatch event",
"type": "object",
"required": [
"inputs",
"ref",
"repository",
"sender",
"workflow"
],
"properties": {
"inputs": {
"description": "Inputs to the workflow. Each key represents the name of the input while it's value represents the value of that input.",
"oneOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
]
},
"installation": {
"$ref": "#/definitions/installation-lite"
},
"organization": {
"$ref": "#/definitions/organization"
},
"ref": {
"description": "The branch ref from which the workflow was run.",
"type": "string"
},
"repository": {
"$ref": "#/definitions/repository"
},
"sender": {
"$ref": "#/definitions/user"
},
"workflow": {
"description": "Relative path to the workflow file which contains the workflow.",
"type": "string"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§inputs: Option<Map<String, Value>>
Inputs to the workflow. Each key represents the name of the input while it’s value represents the value of that input.
installation: Option<InstallationLite>
§organization: Option<Organization>
§ref_: String
The branch ref from which the workflow was run.
repository: Repository
§sender: User
§workflow: String
Relative path to the workflow file which contains the workflow.
Implementations§
Source§impl WorkflowDispatchEvent
impl WorkflowDispatchEvent
pub fn builder() -> WorkflowDispatchEvent
Trait Implementations§
Source§impl Clone for WorkflowDispatchEvent
impl Clone for WorkflowDispatchEvent
Source§fn clone(&self) -> WorkflowDispatchEvent
fn clone(&self) -> WorkflowDispatchEvent
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 WorkflowDispatchEvent
impl Debug for WorkflowDispatchEvent
Source§impl<'de> Deserialize<'de> for WorkflowDispatchEvent
impl<'de> Deserialize<'de> for WorkflowDispatchEvent
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<&WorkflowDispatchEvent> for WorkflowDispatchEvent
impl From<&WorkflowDispatchEvent> for WorkflowDispatchEvent
Source§fn from(value: &WorkflowDispatchEvent) -> Self
fn from(value: &WorkflowDispatchEvent) -> Self
Converts to this type from the input type.
Source§impl From<WorkflowDispatchEvent> for WorkflowDispatchEvent
impl From<WorkflowDispatchEvent> for WorkflowDispatchEvent
Source§fn from(value: WorkflowDispatchEvent) -> Self
fn from(value: WorkflowDispatchEvent) -> Self
Converts to this type from the input type.
Source§impl Serialize for WorkflowDispatchEvent
impl Serialize for WorkflowDispatchEvent
Auto Trait Implementations§
impl Freeze for WorkflowDispatchEvent
impl RefUnwindSafe for WorkflowDispatchEvent
impl Send for WorkflowDispatchEvent
impl Sync for WorkflowDispatchEvent
impl Unpin for WorkflowDispatchEvent
impl UnwindSafe for WorkflowDispatchEvent
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