pub struct BranchProtectionRuleCreated {
pub action: BranchProtectionRuleCreatedAction,
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 created 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": [
"created"
]
},
"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: BranchProtectionRuleCreatedAction
§installation: Option<InstallationLite>
§organization: Option<Organization>
§repository: Repository
§rule: BranchProtectionRule
§sender: User
Implementations§
Trait Implementations§
Source§impl Clone for BranchProtectionRuleCreated
impl Clone for BranchProtectionRuleCreated
Source§fn clone(&self) -> BranchProtectionRuleCreated
fn clone(&self) -> BranchProtectionRuleCreated
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 BranchProtectionRuleCreated
impl Debug for BranchProtectionRuleCreated
Source§impl<'de> Deserialize<'de> for BranchProtectionRuleCreated
impl<'de> Deserialize<'de> for BranchProtectionRuleCreated
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<&BranchProtectionRuleCreated> for BranchProtectionRuleCreated
impl From<&BranchProtectionRuleCreated> for BranchProtectionRuleCreated
Source§fn from(value: &BranchProtectionRuleCreated) -> Self
fn from(value: &BranchProtectionRuleCreated) -> Self
Converts to this type from the input type.
Source§impl From<BranchProtectionRuleCreated> for BranchProtectionRuleCreated
impl From<BranchProtectionRuleCreated> for BranchProtectionRuleCreated
Source§fn from(value: BranchProtectionRuleCreated) -> Self
fn from(value: BranchProtectionRuleCreated) -> Self
Converts to this type from the input type.
Source§impl From<BranchProtectionRuleCreated> for BranchProtectionRuleEvent
impl From<BranchProtectionRuleCreated> for BranchProtectionRuleEvent
Source§fn from(value: BranchProtectionRuleCreated) -> Self
fn from(value: BranchProtectionRuleCreated) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BranchProtectionRuleCreated
impl RefUnwindSafe for BranchProtectionRuleCreated
impl Send for BranchProtectionRuleCreated
impl Sync for BranchProtectionRuleCreated
impl Unpin for BranchProtectionRuleCreated
impl UnwindSafe for BranchProtectionRuleCreated
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