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§authorized_dismissal_actors_only: 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§authorized_actors_only: BranchProtectionRuleBoolean§authorized_actor_names: BranchProtectionRuleArray<'a>

Trait Implementations§

source§

impl<'a> Debug for BranchProtectionRule<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de: 'a, 'a> Deserialize<'de> for BranchProtectionRule<'a>

source§

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§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,