Struct gitlab::api::groups::BranchProtectionDefaultsBuilder
source · pub struct BranchProtectionDefaultsBuilder { /* private fields */ }Expand description
Builder for BranchProtectionDefaults.
Implementations§
source§impl BranchProtectionDefaultsBuilder
impl BranchProtectionDefaultsBuilder
sourcepub fn allow_force_push(&mut self, value: bool) -> &mut Self
pub fn allow_force_push(&mut self, value: bool) -> &mut Self
Whether force pushes are allowed or not.
sourcepub fn developer_can_initial_push(&mut self, value: bool) -> &mut Self
pub fn developer_can_initial_push(&mut self, value: bool) -> &mut Self
Whether developers can create branches or not.
sourcepub fn build(
&self
) -> Result<BranchProtectionDefaults, BranchProtectionDefaultsBuilderError>
pub fn build( &self ) -> Result<BranchProtectionDefaults, BranchProtectionDefaultsBuilderError>
source§impl BranchProtectionDefaultsBuilder
impl BranchProtectionDefaultsBuilder
sourcepub fn allowed_to_push(
&mut self,
allowed: BranchProtectionAccessLevel
) -> &mut Self
pub fn allowed_to_push( &mut self, allowed: BranchProtectionAccessLevel ) -> &mut Self
Add an access level allowed to push.
sourcepub fn not_allowed_to_push(
&mut self,
disallowed: BranchProtectionAccessLevel
) -> &mut Self
pub fn not_allowed_to_push( &mut self, disallowed: BranchProtectionAccessLevel ) -> &mut Self
Remove an access level allowed to push.
sourcepub fn allowed_to_merge(
&mut self,
allowed: BranchProtectionAccessLevel
) -> &mut Self
pub fn allowed_to_merge( &mut self, allowed: BranchProtectionAccessLevel ) -> &mut Self
Add an access level allowed to merge.
sourcepub fn not_allowed_to_merge(
&mut self,
disallowed: BranchProtectionAccessLevel
) -> &mut Self
pub fn not_allowed_to_merge( &mut self, disallowed: BranchProtectionAccessLevel ) -> &mut Self
Remove an access level allowed to merge.
Trait Implementations§
source§impl Clone for BranchProtectionDefaultsBuilder
impl Clone for BranchProtectionDefaultsBuilder
source§fn clone(&self) -> BranchProtectionDefaultsBuilder
fn clone(&self) -> BranchProtectionDefaultsBuilder
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 moreAuto Trait Implementations§
impl RefUnwindSafe for BranchProtectionDefaultsBuilder
impl Send for BranchProtectionDefaultsBuilder
impl Sync for BranchProtectionDefaultsBuilder
impl Unpin for BranchProtectionDefaultsBuilder
impl UnwindSafe for BranchProtectionDefaultsBuilder
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