[−][src]Struct gitlab::api::projects::protected_branches::ProtectBranchBuilder
Builder for ProtectBranch
.
Implementations
impl<'a> ProtectBranchBuilder<'a>
[src]
pub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
[src]
The project to protect a branch within.
pub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
[src]
The name or glob of the branch to protect.
pub fn push_access_level(&mut self, value: ProtectedAccessLevel) -> &mut Self
[src]
The minimum access level required to push to the branch.
pub fn merge_access_level(&mut self, value: ProtectedAccessLevel) -> &mut Self
[src]
The minimum access level required to merge into the branch.
pub fn unprotect_access_level(
&mut self,
value: ProtectedAccessLevel
) -> &mut Self
[src]
&mut self,
value: ProtectedAccessLevel
) -> &mut Self
The minimum access level required to unprotect the branch.
pub fn code_owner_approval_required(&mut self, value: bool) -> &mut Self
[src]
Whether code owner approval is required to merge.
pub fn build(&self) -> Result<ProtectBranch<'a>, String>
[src]
impl<'a> ProtectBranchBuilder<'a>
[src]
pub fn allowed_to_push(&mut self, access: ProtectedAccess) -> &mut Self
[src]
Add access to push to the branch.
pub fn allowed_to_merge(&mut self, access: ProtectedAccess) -> &mut Self
[src]
Add access to merge into the branch.
pub fn allowed_to_unprotect(&mut self, access: ProtectedAccess) -> &mut Self
[src]
Add access to unprotect the branch.
Trait Implementations
impl<'a> Clone for ProtectBranchBuilder<'a>
[src]
fn clone(&self) -> ProtectBranchBuilder<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Default for ProtectBranchBuilder<'a>
[src]
fn default() -> ProtectBranchBuilder<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for ProtectBranchBuilder<'a>
impl<'a> Send for ProtectBranchBuilder<'a>
impl<'a> Sync for ProtectBranchBuilder<'a>
impl<'a> Unpin for ProtectBranchBuilder<'a>
impl<'a> UnwindSafe for ProtectBranchBuilder<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,