Struct gitlab::api::groups::CreateGroupBuilder
source · pub struct CreateGroupBuilder<'a> { /* private fields */ }
Expand description
Builder for CreateGroup
.
Implementations§
source§impl<'a> CreateGroupBuilder<'a>
impl<'a> CreateGroupBuilder<'a>
sourcepub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The name of the group.
sourcepub fn path<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn path<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The path of the group.
sourcepub fn description<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn description<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
A short description for the group.
sourcepub fn membership_lock(&mut self, value: bool) -> &mut Self
pub fn membership_lock(&mut self, value: bool) -> &mut Self
Prevent adding members directly to projects within the group.
sourcepub fn visibility(&mut self, value: VisibilityLevel) -> &mut Self
pub fn visibility(&mut self, value: VisibilityLevel) -> &mut Self
The visibility of the group.
Prevent sharing a project in this group with another group.
sourcepub fn require_two_factor_authentication(&mut self, value: bool) -> &mut Self
pub fn require_two_factor_authentication(&mut self, value: bool) -> &mut Self
Require two-factor authentication to be a member of this group.
sourcepub fn two_factor_grace_period(&mut self, value: u64) -> &mut Self
pub fn two_factor_grace_period(&mut self, value: u64) -> &mut Self
Time (in hours) for users to enable two-factor before enforcing it.
sourcepub fn project_creation_level(
&mut self,
value: GroupProjectCreationAccessLevel
) -> &mut Self
pub fn project_creation_level( &mut self, value: GroupProjectCreationAccessLevel ) -> &mut Self
The access level to the group that is required to create new projects.
sourcepub fn auto_devops_enabled(&mut self, value: bool) -> &mut Self
pub fn auto_devops_enabled(&mut self, value: bool) -> &mut Self
Default to Auto DevOps for new projects in the group.
sourcepub fn subgroup_creation_level(
&mut self,
value: SubgroupCreationAccessLevel
) -> &mut Self
pub fn subgroup_creation_level( &mut self, value: SubgroupCreationAccessLevel ) -> &mut Self
The access level to the group that is required to create subgroups.
sourcepub fn emails_disabled(&mut self, value: bool) -> &mut Self
pub fn emails_disabled(&mut self, value: bool) -> &mut Self
Disable email notifications from the group.
sourcepub fn mentions_disabled(&mut self, value: bool) -> &mut Self
pub fn mentions_disabled(&mut self, value: bool) -> &mut Self
Disable group-wide mentions.
sourcepub fn lfs_enabled(&mut self, value: bool) -> &mut Self
pub fn lfs_enabled(&mut self, value: bool) -> &mut Self
Whether git-lfs
is enabled by default for projects within the group.
sourcepub fn request_access_enabled(&mut self, value: bool) -> &mut Self
pub fn request_access_enabled(&mut self, value: bool) -> &mut Self
Whether access to the group may be requested.
sourcepub fn default_branch_protection(
&mut self,
value: BranchProtection
) -> &mut Self
pub fn default_branch_protection( &mut self, value: BranchProtection ) -> &mut Self
The default branch protection for projects within the group.
Pipeline quota (in minutes) for the group on shared runners.
Pipeline quota excess (in minutes) for the group on shared runners.
sourcepub fn build(&self) -> Result<CreateGroup<'a>, CreateGroupBuilderError>
pub fn build(&self) -> Result<CreateGroup<'a>, CreateGroupBuilderError>
Trait Implementations§
source§impl<'a> Clone for CreateGroupBuilder<'a>
impl<'a> Clone for CreateGroupBuilder<'a>
source§fn clone(&self) -> CreateGroupBuilder<'a>
fn clone(&self) -> CreateGroupBuilder<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more