pub struct BranchProtectionRuleDeleted {
pub action: BranchProtectionRuleDeletedAction,
pub installation: Option<InstallationLite>,
pub organization: Option<Organization>,
pub repository: Repository,
pub rule: BranchProtectionRule,
pub sender: User,
}
Expand description
Activity related to a branch protection rule. For more information, see “About branch protection rules.”
JSON schema
{
"title": "branch protection rule deleted event",
"description": "Activity related to a branch protection rule. For more information, see \"[About branch protection rules](https://docs.github.com/en/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-rules).\"",
"type": "object",
"required": [
"action",
"repository",
"rule",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"deleted"
]
},
"installation": {
"$ref": "#/definitions/installation-lite"
},
"organization": {
"$ref": "#/definitions/organization"
},
"repository": {
"$ref": "#/definitions/repository"
},
"rule": {
"$ref": "#/definitions/branch-protection-rule"
},
"sender": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: BranchProtectionRuleDeletedAction
§installation: Option<InstallationLite>
§organization: Option<Organization>
§repository: Repository
§rule: BranchProtectionRule
§sender: User
Implementations§
Trait Implementations§
Source§impl Clone for BranchProtectionRuleDeleted
impl Clone for BranchProtectionRuleDeleted
Source§fn clone(&self) -> BranchProtectionRuleDeleted
fn clone(&self) -> BranchProtectionRuleDeleted
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 BranchProtectionRuleDeleted
impl Debug for BranchProtectionRuleDeleted
Source§impl<'de> Deserialize<'de> for BranchProtectionRuleDeleted
impl<'de> Deserialize<'de> for BranchProtectionRuleDeleted
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<&BranchProtectionRuleDeleted> for BranchProtectionRuleDeleted
impl From<&BranchProtectionRuleDeleted> for BranchProtectionRuleDeleted
Source§fn from(value: &BranchProtectionRuleDeleted) -> Self
fn from(value: &BranchProtectionRuleDeleted) -> Self
Converts to this type from the input type.
Source§impl From<BranchProtectionRuleDeleted> for BranchProtectionRuleDeleted
impl From<BranchProtectionRuleDeleted> for BranchProtectionRuleDeleted
Source§fn from(value: BranchProtectionRuleDeleted) -> Self
fn from(value: BranchProtectionRuleDeleted) -> Self
Converts to this type from the input type.
Source§impl From<BranchProtectionRuleDeleted> for BranchProtectionRuleEvent
impl From<BranchProtectionRuleDeleted> for BranchProtectionRuleEvent
Source§fn from(value: BranchProtectionRuleDeleted) -> Self
fn from(value: BranchProtectionRuleDeleted) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BranchProtectionRuleDeleted
impl RefUnwindSafe for BranchProtectionRuleDeleted
impl Send for BranchProtectionRuleDeleted
impl Sync for BranchProtectionRuleDeleted
impl Unpin for BranchProtectionRuleDeleted
impl UnwindSafe for BranchProtectionRuleDeleted
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