pub struct BranchProtectionRule<'a> {Show 26 fields
pub id: usize,
pub repository_id: usize,
pub name: &'a str,
pub created_at: &'a str,
pub updated_at: &'a str,
pub pull_request_reviews_enforcement_level: BranchProtectionRuleEnforcementLevel,
pub required_approving_review_count: BranchProtectionRuleNumber,
pub dismiss_stale_reviews_on_push: BranchProtectionRuleBoolean,
pub require_code_owner_review: BranchProtectionRuleBoolean,
pub authorized_dismissal_actors_only: BranchProtectionRuleBoolean,
pub ignore_approvals_from_contributors: BranchProtectionRuleBoolean,
pub require_last_push_approval: Option<BranchProtectionRuleBoolean>,
pub required_status_checks: BranchProtectionRuleArray<'a>,
pub required_status_checks_enforcement_level: BranchProtectionRuleEnforcementLevel,
pub strict_required_status_checks_policy: BranchProtectionRuleBoolean,
pub signature_requirement_enforcement_level: BranchProtectionRuleEnforcementLevel,
pub linear_history_requirement_enforcement_level: BranchProtectionRuleEnforcementLevel,
pub admin_enforced: BranchProtectionRuleBoolean,
pub create_protected: Option<BranchProtectionRuleBoolean>,
pub allow_force_pushes_enforcement_level: BranchProtectionRuleEnforcementLevel,
pub allow_deletions_enforcement_level: BranchProtectionRuleEnforcementLevel,
pub merge_queue_enforcement_level: BranchProtectionRuleEnforcementLevel,
pub required_deployments_enforcement_level: BranchProtectionRuleEnforcementLevel,
pub required_conversation_resolution_level: BranchProtectionRuleEnforcementLevel,
pub authorized_actors_only: BranchProtectionRuleBoolean,
pub authorized_actor_names: BranchProtectionRuleArray<'a>,
}
Expand description
The branch protection rule. Includes a name
and all the branch protection settings applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of off
, non_admins
, or everyone
. Actor and build lists are arrays of strings.
Fields§
§id: usize
§repository_id: usize
§name: &'a str
§created_at: &'a str
§updated_at: &'a str
§pull_request_reviews_enforcement_level: BranchProtectionRuleEnforcementLevel
§required_approving_review_count: BranchProtectionRuleNumber
§dismiss_stale_reviews_on_push: BranchProtectionRuleBoolean
§require_code_owner_review: BranchProtectionRuleBoolean
§ignore_approvals_from_contributors: BranchProtectionRuleBoolean
§require_last_push_approval: Option<BranchProtectionRuleBoolean>
§required_status_checks: BranchProtectionRuleArray<'a>
§required_status_checks_enforcement_level: BranchProtectionRuleEnforcementLevel
§strict_required_status_checks_policy: BranchProtectionRuleBoolean
§signature_requirement_enforcement_level: BranchProtectionRuleEnforcementLevel
§linear_history_requirement_enforcement_level: BranchProtectionRuleEnforcementLevel
§admin_enforced: BranchProtectionRuleBoolean
§create_protected: Option<BranchProtectionRuleBoolean>
§allow_force_pushes_enforcement_level: BranchProtectionRuleEnforcementLevel
§allow_deletions_enforcement_level: BranchProtectionRuleEnforcementLevel
§merge_queue_enforcement_level: BranchProtectionRuleEnforcementLevel
§required_deployments_enforcement_level: BranchProtectionRuleEnforcementLevel
§required_conversation_resolution_level: BranchProtectionRuleEnforcementLevel
Trait Implementations§
source§impl<'a> Debug for BranchProtectionRule<'a>
impl<'a> Debug for BranchProtectionRule<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for BranchProtectionRule<'a>
impl<'de: 'a, 'a> Deserialize<'de> for BranchProtectionRule<'a>
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
Auto Trait Implementations§
impl<'a> RefUnwindSafe for BranchProtectionRule<'a>
impl<'a> Send for BranchProtectionRule<'a>
impl<'a> Sync for BranchProtectionRule<'a>
impl<'a> Unpin for BranchProtectionRule<'a>
impl<'a> UnwindSafe for BranchProtectionRule<'a>
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