pub enum BranchProtectionRuleEnforcementLevel {
Off,
NonAdmins,
Everyone,
}
Expand description
BranchProtectionRuleEnforcementLevel
JSON schema
{
"title": "Branch protection rule enforcement level",
"type": "string",
"enum": [
"off",
"non_admins",
"everyone"
],
"$schema": "http://json-schema.org/draft-07/schema"
}
Variants§
Trait Implementations§
Source§impl Clone for BranchProtectionRuleEnforcementLevel
impl Clone for BranchProtectionRuleEnforcementLevel
Source§fn clone(&self) -> BranchProtectionRuleEnforcementLevel
fn clone(&self) -> BranchProtectionRuleEnforcementLevel
Returns a duplicate 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<'de> Deserialize<'de> for BranchProtectionRuleEnforcementLevel
impl<'de> Deserialize<'de> for BranchProtectionRuleEnforcementLevel
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 From<&BranchProtectionRuleEnforcementLevel> for BranchProtectionRuleEnforcementLevel
impl From<&BranchProtectionRuleEnforcementLevel> for BranchProtectionRuleEnforcementLevel
Source§fn from(value: &BranchProtectionRuleEnforcementLevel) -> Self
fn from(value: &BranchProtectionRuleEnforcementLevel) -> Self
Converts to this type from the input type.
Source§impl Ord for BranchProtectionRuleEnforcementLevel
impl Ord for BranchProtectionRuleEnforcementLevel
Source§fn cmp(&self, other: &BranchProtectionRuleEnforcementLevel) -> Ordering
fn cmp(&self, other: &BranchProtectionRuleEnforcementLevel) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BranchProtectionRuleEnforcementLevel
impl PartialEq for BranchProtectionRuleEnforcementLevel
Source§fn eq(&self, other: &BranchProtectionRuleEnforcementLevel) -> bool
fn eq(&self, other: &BranchProtectionRuleEnforcementLevel) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl PartialOrd for BranchProtectionRuleEnforcementLevel
impl PartialOrd for BranchProtectionRuleEnforcementLevel
impl Copy for BranchProtectionRuleEnforcementLevel
impl Eq for BranchProtectionRuleEnforcementLevel
impl StructuralPartialEq for BranchProtectionRuleEnforcementLevel
Auto Trait Implementations§
impl Freeze for BranchProtectionRuleEnforcementLevel
impl RefUnwindSafe for BranchProtectionRuleEnforcementLevel
impl Send for BranchProtectionRuleEnforcementLevel
impl Sync for BranchProtectionRuleEnforcementLevel
impl Unpin for BranchProtectionRuleEnforcementLevel
impl UnwindSafe for BranchProtectionRuleEnforcementLevel
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