pub struct DeploymentProtectionRuleRequested {
pub action: DeploymentProtectionRuleRequestedAction,
pub deployment: Option<Deployment>,
pub deployment_callback_url: Option<String>,
pub environment: Option<String>,
pub event: Option<String>,
pub installation: Option<InstallationLite>,
pub organization: Option<Organization>,
pub pull_requests: Vec<PullRequest>,
pub repository: Repository,
pub sender: User,
}
Expand description
DeploymentProtectionRuleRequested
JSON schema
{
"title": "deployment protection rule requested event",
"type": "object",
"required": [
"action",
"repository",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"requested"
]
},
"deployment": {
"$ref": "#/definitions/deployment"
},
"deployment_callback_url": {
"description": "The URL to review the deployment protection rule.",
"type": "string",
"format": "uri"
},
"environment": {
"description": "The name of the environment that has the deployment protection rule.",
"type": "string"
},
"event": {
"description": "The event that triggered the deployment protection rule.",
"type": "string"
},
"installation": {
"$ref": "#/definitions/installation-lite"
},
"organization": {
"$ref": "#/definitions/organization"
},
"pull_requests": {
"type": "array",
"items": {
"$ref": "#/definitions/pull-request"
}
},
"repository": {
"$ref": "#/definitions/repository"
},
"sender": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: DeploymentProtectionRuleRequestedAction
§deployment: Option<Deployment>
§deployment_callback_url: Option<String>
The URL to review the deployment protection rule.
environment: Option<String>
The name of the environment that has the deployment protection rule.
event: Option<String>
The event that triggered the deployment protection rule.
installation: Option<InstallationLite>
§organization: Option<Organization>
§pull_requests: Vec<PullRequest>
§repository: Repository
§sender: User
Implementations§
Trait Implementations§
Source§impl Clone for DeploymentProtectionRuleRequested
impl Clone for DeploymentProtectionRuleRequested
Source§fn clone(&self) -> DeploymentProtectionRuleRequested
fn clone(&self) -> DeploymentProtectionRuleRequested
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<'de> Deserialize<'de> for DeploymentProtectionRuleRequested
impl<'de> Deserialize<'de> for DeploymentProtectionRuleRequested
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<&DeploymentProtectionRuleRequested> for DeploymentProtectionRuleRequested
impl From<&DeploymentProtectionRuleRequested> for DeploymentProtectionRuleRequested
Source§fn from(value: &DeploymentProtectionRuleRequested) -> Self
fn from(value: &DeploymentProtectionRuleRequested) -> Self
Converts to this type from the input type.
Source§impl From<DeploymentProtectionRuleEvent> for DeploymentProtectionRuleRequested
impl From<DeploymentProtectionRuleEvent> for DeploymentProtectionRuleRequested
Source§fn from(value: DeploymentProtectionRuleEvent) -> Self
fn from(value: DeploymentProtectionRuleEvent) -> Self
Converts to this type from the input type.
Source§impl From<DeploymentProtectionRuleRequested> for DeploymentProtectionRuleEvent
impl From<DeploymentProtectionRuleRequested> for DeploymentProtectionRuleEvent
Source§fn from(value: DeploymentProtectionRuleRequested) -> Self
fn from(value: DeploymentProtectionRuleRequested) -> Self
Converts to this type from the input type.
Source§impl From<DeploymentProtectionRuleRequested> for DeploymentProtectionRuleRequested
impl From<DeploymentProtectionRuleRequested> for DeploymentProtectionRuleRequested
Source§fn from(value: DeploymentProtectionRuleRequested) -> Self
fn from(value: DeploymentProtectionRuleRequested) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DeploymentProtectionRuleRequested
impl RefUnwindSafe for DeploymentProtectionRuleRequested
impl Send for DeploymentProtectionRuleRequested
impl Sync for DeploymentProtectionRuleRequested
impl Unpin for DeploymentProtectionRuleRequested
impl UnwindSafe for DeploymentProtectionRuleRequested
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