[][src]Struct gitlab::api::groups::CreateGroupBuilder

pub struct CreateGroupBuilder<'a> { /* fields omitted */ }

Builder for CreateGroup.

Implementations

impl<'a> CreateGroupBuilder<'a>[src]

pub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self[src]

The name of the group.

pub fn path<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self[src]

The path of the group.

pub fn description<VALUE: Into<Cow<'a, str>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

A short description for the group.

pub fn membership_lock(&mut self, value: bool) -> &mut Self[src]

Prevent adding members directly to projects within the group.

pub fn visibility(&mut self, value: VisibilityLevel) -> &mut Self[src]

The visibility of the group.

pub fn share_with_group_lock(&mut self, value: bool) -> &mut Self[src]

Prevent sharing a project in this group with another group.

pub fn require_two_factor_authentication(&mut self, value: bool) -> &mut Self[src]

Require two-factor authentication to be a member of this group.

pub fn two_factor_grace_period(&mut self, value: u64) -> &mut Self[src]

Time (in hours) for users to enable two-factor before enforcing it.

pub fn project_creation_level(
    &mut self,
    value: GroupProjectCreationAccessLevel
) -> &mut Self
[src]

The access level to the group that is required to create new projects.

pub fn auto_devops_enabled(&mut self, value: bool) -> &mut Self[src]

Default to Auto DevOps for new projects in the group.

pub fn subgroup_creation_level(
    &mut self,
    value: SubgroupCreationAccessLevel
) -> &mut Self
[src]

The access level to the group that is required to create subgroups.

pub fn emails_disabled(&mut self, value: bool) -> &mut Self[src]

Disable email notifications from the group.

pub fn mentions_disabled(&mut self, value: bool) -> &mut Self[src]

Disable group-wide mentions.

pub fn lfs_enabled(&mut self, value: bool) -> &mut Self[src]

Whether git-lfs is enabled by default for projects within the group.

pub fn request_access_enabled(&mut self, value: bool) -> &mut Self[src]

Whether access to the group may be requested.

pub fn parent_id(&mut self, value: u64) -> &mut Self[src]

The parent group ID (for subgroups).

pub fn default_branch_protection(
    &mut self,
    value: BranchProtection
) -> &mut Self
[src]

The default branch protection for projects within the group.

pub fn shared_runners_minutes_limit(&mut self, value: u64) -> &mut Self[src]

Pipeline quota (in minutes) for the group on shared runners.

pub fn extra_shared_runners_minutes_limit(&mut self, value: u64) -> &mut Self[src]

Pipeline quota excess (in minutes) for the group on shared runners.

pub fn build(&self) -> Result<CreateGroup<'a>, String>[src]

Builds a new CreateGroup.

Errors

If a required field has not been initialized.

Trait Implementations

impl<'a> Clone for CreateGroupBuilder<'a>[src]

impl<'a> Default for CreateGroupBuilder<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for CreateGroupBuilder<'a>

impl<'a> Send for CreateGroupBuilder<'a>

impl<'a> Sync for CreateGroupBuilder<'a>

impl<'a> Unpin for CreateGroupBuilder<'a>

impl<'a> UnwindSafe for CreateGroupBuilder<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.