Struct github_rest::model::repositories::events::nested::BranchProtectionRule
source · pub struct BranchProtectionRule {Show 24 fields
pub id: usize,
pub repository_id: usize,
pub name: String,
pub created_at: String,
pub updated_at: String,
pub pull_request_reviews_enforcement_level: MultiLevelConfiguration,
pub required_approving_review_count: usize,
pub dismiss_stale_reviews_on_push: bool,
pub require_code_owner_review: bool,
pub authorized_dismissal_actors_only: bool,
pub ignore_approvals_from_contributors: bool,
pub required_status_checks: Vec<String>,
pub required_status_checks_enforcement_level: MultiLevelConfiguration,
pub strict_required_status_checks_policy: bool,
pub signature_requirement_enforcement_level: String,
pub linear_history_requirement_enforcement_level: MultiLevelConfiguration,
pub admin_enforced: bool,
pub allow_force_pushes_enforcement_level: MultiLevelConfiguration,
pub allow_deletions_enforcement_level: MultiLevelConfiguration,
pub merge_queue_enforcement_level: MultiLevelConfiguration,
pub required_deployments_enforcement_level: MultiLevelConfiguration,
pub required_conversation_resolution_level: MultiLevelConfiguration,
pub authorized_actors_only: bool,
pub authorized_actor_names: Vec<String>,
}
Fields§
§id: usize
§repository_id: usize
§name: String
§created_at: String
§updated_at: String
§pull_request_reviews_enforcement_level: MultiLevelConfiguration
§required_approving_review_count: usize
§dismiss_stale_reviews_on_push: bool
§require_code_owner_review: bool
§ignore_approvals_from_contributors: bool
§required_status_checks: Vec<String>
§required_status_checks_enforcement_level: MultiLevelConfiguration
§strict_required_status_checks_policy: bool
§signature_requirement_enforcement_level: String
§linear_history_requirement_enforcement_level: MultiLevelConfiguration
§admin_enforced: bool
§allow_force_pushes_enforcement_level: MultiLevelConfiguration
§allow_deletions_enforcement_level: MultiLevelConfiguration
§merge_queue_enforcement_level: MultiLevelConfiguration
§required_deployments_enforcement_level: MultiLevelConfiguration
§required_conversation_resolution_level: MultiLevelConfiguration
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<BranchProtectionRule> for BranchProtectionRule
impl PartialEq<BranchProtectionRule> 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 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