Struct octocrab::models::webhook_events::payload::BranchProtectionRule
source · #[non_exhaustive]pub struct BranchProtectionRule {Show 26 fields
pub admin_enfored: bool,
pub allow_deletions_enforcement_level: BranchProtectionRuleLevel,
pub allow_force_pushes_enforcement_level: BranchProtectionRuleLevel,
pub authorized_actor_names: Vec<String>,
pub authorized_actors_only: bool,
pub authorized_dismissal_actors_only: bool,
pub create_protected: Option<bool>,
pub created_at: DateTime<Utc>,
pub dismiss_stale_reviews_on_push: bool,
pub id: BranchProtectionRuleId,
pub ignore_approvals_from_contributors: bool,
pub linear_history_requirement_enforcement_level: BranchProtectionRuleLevel,
pub merge_queue_enforcement_level: BranchProtectionRuleLevel,
pub name: String,
pub pull_request_reviews_enforcement_level: BranchProtectionRuleLevel,
pub repository_id: RepositoryId,
pub require_code_owner_review: bool,
pub require_last_push_approval: Option<bool>,
pub required_approving_review_count: i64,
pub required_conversation_resolution_level: BranchProtectionRuleLevel,
pub required_deployments_enforcement_level: BranchProtectionRuleLevel,
pub required_status_checks: Vec<String>,
pub required_status_checks_enforcement_level: BranchProtectionRuleLevel,
pub signature_requirement_enforcement_level: BranchProtectionRuleLevel,
pub strict_required_status_checks_policy: bool,
pub updated_at: DateTime<Utc>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.admin_enfored: bool
§allow_deletions_enforcement_level: BranchProtectionRuleLevel
§allow_force_pushes_enforcement_level: BranchProtectionRuleLevel
§create_protected: Option<bool>
§created_at: DateTime<Utc>
§dismiss_stale_reviews_on_push: bool
§id: BranchProtectionRuleId
§ignore_approvals_from_contributors: bool
§linear_history_requirement_enforcement_level: BranchProtectionRuleLevel
§merge_queue_enforcement_level: BranchProtectionRuleLevel
§name: String
§pull_request_reviews_enforcement_level: BranchProtectionRuleLevel
§repository_id: RepositoryId
§require_code_owner_review: bool
§require_last_push_approval: Option<bool>
§required_approving_review_count: i64
§required_conversation_resolution_level: BranchProtectionRuleLevel
§required_deployments_enforcement_level: BranchProtectionRuleLevel
§required_status_checks: Vec<String>
§required_status_checks_enforcement_level: BranchProtectionRuleLevel
§signature_requirement_enforcement_level: BranchProtectionRuleLevel
§strict_required_status_checks_policy: bool
§updated_at: DateTime<Utc>
Trait Implementations§
source§impl Clone for BranchProtectionRule
impl Clone for BranchProtectionRule
source§fn clone(&self) -> BranchProtectionRule
fn clone(&self) -> BranchProtectionRule
Returns a copy 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 BranchProtectionRule
impl Debug for BranchProtectionRule
source§impl<'de> Deserialize<'de> for BranchProtectionRule
impl<'de> Deserialize<'de> for BranchProtectionRule
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 PartialEq for BranchProtectionRule
impl PartialEq for BranchProtectionRule
source§fn eq(&self, other: &BranchProtectionRule) -> bool
fn eq(&self, other: &BranchProtectionRule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BranchProtectionRule
impl Serialize for BranchProtectionRule
impl StructuralPartialEq for BranchProtectionRule
Auto Trait Implementations§
impl Freeze for BranchProtectionRule
impl RefUnwindSafe for BranchProtectionRule
impl Send for BranchProtectionRule
impl Sync for BranchProtectionRule
impl Unpin for BranchProtectionRule
impl UnwindSafe for BranchProtectionRule
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