Enum gitlab::api::groups::BranchProtection
source · pub enum BranchProtection {
None,
Partial,
Full,
Push,
}
Expand description
Branch protection rules for groups.
Variants§
None
Developers and maintainers may push, force push, and delete branches.
Partial
Developers and maintainers may push branches.
Full
Maintainers may push branches.
Push
Developers may accept merge requests; maintainers may push, force push, and accept merge requests.
Trait Implementations§
source§impl Clone for BranchProtection
impl Clone for BranchProtection
source§fn clone(&self) -> BranchProtection
fn clone(&self) -> BranchProtection
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 BranchProtection
impl Debug for BranchProtection
source§impl ParamValue<'static> for BranchProtection
impl ParamValue<'static> for BranchProtection
source§impl PartialEq<BranchProtection> for BranchProtection
impl PartialEq<BranchProtection> for BranchProtection
source§fn eq(&self, other: &BranchProtection) -> bool
fn eq(&self, other: &BranchProtection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BranchProtection
impl Eq for BranchProtection
impl StructuralEq for BranchProtection
impl StructuralPartialEq for BranchProtection
Auto Trait Implementations§
impl RefUnwindSafe for BranchProtection
impl Send for BranchProtection
impl Sync for BranchProtection
impl Unpin for BranchProtection
impl UnwindSafe for BranchProtection
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.