pub struct BranchProtectionRule {Show 24 fields
pub admin_enforced: bool,
pub allow_deletions_enforcement_level: String,
pub authorized_actor_names: Vec<String>,
pub authorized_actors_only: bool,
pub authorized_dismissal_actors_only: bool,
pub create_protected: bool,
pub created_at: String,
pub dismiss_stale_reviews_on_push: bool,
pub id: i64,
pub ignore_approvals_from_contributors: bool,
pub linear_history_requirement_enforcement_level: EnforcementLevel,
pub merge_queue_enforcement_level: EnforcementLevel,
pub name: String,
pub pull_request_revies_enforcement_level: EnforcementLevel,
pub repository_id: i64,
pub require_code_owner_review: bool,
pub required_approving_review_count: i64,
pub required_conversation_resolution_level: EnforcementLevel,
pub required_deployments_enforcement_level: EnforcementLevel,
pub required_status_checks: Vec<String>,
pub required_status_checks_enforcement_level: EnforcementLevel,
pub signature_requirement_enforcement_level: EnforcementLevel,
pub strict_required_status_checks_policy: bool,
pub updated_at: String,
}
Fields§
§admin_enforced: bool
§allow_deletions_enforcement_level: String
§create_protected: bool
§created_at: String
§dismiss_stale_reviews_on_push: bool
§id: i64
§ignore_approvals_from_contributors: bool
§linear_history_requirement_enforcement_level: EnforcementLevel
§merge_queue_enforcement_level: EnforcementLevel
§name: String
§pull_request_revies_enforcement_level: EnforcementLevel
§repository_id: i64
§require_code_owner_review: bool
§required_approving_review_count: i64
§required_conversation_resolution_level: EnforcementLevel
§required_deployments_enforcement_level: EnforcementLevel
§required_status_checks: Vec<String>
§required_status_checks_enforcement_level: EnforcementLevel
§signature_requirement_enforcement_level: EnforcementLevel
§strict_required_status_checks_policy: bool
§updated_at: String
Trait Implementations§
Source§impl Clone for BranchProtectionRule
impl Clone for BranchProtectionRule
Source§fn clone(&self) -> BranchProtectionRule
fn clone(&self) -> BranchProtectionRule
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BranchProtectionRule
impl Debug for BranchProtectionRule
Source§impl Default for BranchProtectionRule
impl Default for BranchProtectionRule
Source§fn default() -> BranchProtectionRule
fn default() -> BranchProtectionRule
Returns the “default value” for a type. Read more
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§impl Serialize for BranchProtectionRule
impl Serialize for BranchProtectionRule
impl Eq 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