pub struct DeploymentCreated {
pub action: DeploymentCreatedAction,
pub deployment: Deployment,
pub installation: Option<InstallationLite>,
pub organization: Option<Organization>,
pub repository: Repository,
pub sender: User,
pub workflow: Option<Workflow>,
pub workflow_run: Option<DeploymentWorkflowRun>,
}
Expand description
DeploymentCreated
JSON schema
{
"title": "deployment created event",
"type": "object",
"required": [
"action",
"deployment",
"repository",
"sender",
"workflow",
"workflow_run"
],
"properties": {
"action": {
"type": "string",
"enum": [
"created"
]
},
"deployment": {
"$ref": "#/definitions/deployment"
},
"installation": {
"$ref": "#/definitions/installation-lite"
},
"organization": {
"$ref": "#/definitions/organization"
},
"repository": {
"$ref": "#/definitions/repository"
},
"sender": {
"$ref": "#/definitions/user"
},
"workflow": {
"oneOf": [
{
"$ref": "#/definitions/workflow"
},
{
"type": "null"
}
]
},
"workflow_run": {
"oneOf": [
{
"$ref": "#/definitions/deployment-workflow-run"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: DeploymentCreatedAction
§deployment: Deployment
§installation: Option<InstallationLite>
§organization: Option<Organization>
§repository: Repository
§sender: User
§workflow: Option<Workflow>
§workflow_run: Option<DeploymentWorkflowRun>
Implementations§
Source§impl DeploymentCreated
impl DeploymentCreated
pub fn builder() -> DeploymentCreated
Trait Implementations§
Source§impl Clone for DeploymentCreated
impl Clone for DeploymentCreated
Source§fn clone(&self) -> DeploymentCreated
fn clone(&self) -> DeploymentCreated
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 DeploymentCreated
impl Debug for DeploymentCreated
Source§impl<'de> Deserialize<'de> for DeploymentCreated
impl<'de> Deserialize<'de> for DeploymentCreated
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<&DeploymentCreated> for DeploymentCreated
impl From<&DeploymentCreated> for DeploymentCreated
Source§fn from(value: &DeploymentCreated) -> Self
fn from(value: &DeploymentCreated) -> Self
Converts to this type from the input type.
Source§impl From<DeploymentCreated> for DeploymentCreated
impl From<DeploymentCreated> for DeploymentCreated
Source§fn from(value: DeploymentCreated) -> Self
fn from(value: DeploymentCreated) -> Self
Converts to this type from the input type.
Source§impl From<DeploymentCreated> for DeploymentEvent
impl From<DeploymentCreated> for DeploymentEvent
Source§fn from(value: DeploymentCreated) -> Self
fn from(value: DeploymentCreated) -> Self
Converts to this type from the input type.
Source§impl From<DeploymentEvent> for DeploymentCreated
impl From<DeploymentEvent> for DeploymentCreated
Source§fn from(value: DeploymentEvent) -> Self
fn from(value: DeploymentEvent) -> Self
Converts to this type from the input type.
Source§impl Serialize for DeploymentCreated
impl Serialize for DeploymentCreated
Source§impl TryFrom<DeploymentCreated> for DeploymentCreated
impl TryFrom<DeploymentCreated> for DeploymentCreated
Auto Trait Implementations§
impl Freeze for DeploymentCreated
impl RefUnwindSafe for DeploymentCreated
impl Send for DeploymentCreated
impl Sync for DeploymentCreated
impl Unpin for DeploymentCreated
impl UnwindSafe for DeploymentCreated
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