Struct gitlab::api::groups::EditGroupBuilder
source · pub struct EditGroupBuilder<'a> { /* private fields */ }
Expand description
Builder for EditGroup
.
Implementations§
source§impl<'a> EditGroupBuilder<'a>
impl<'a> EditGroupBuilder<'a>
sourcepub fn group<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn group<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
The group to edit.
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 emails_enabled(&mut self, value: bool) -> &mut Self
pub fn emails_enabled(&mut self, value: bool) -> &mut Self
Enable 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 prevent_sharing_groups_outside_hierarchy(
&mut self,
value: bool
) -> &mut Self
pub fn prevent_sharing_groups_outside_hierarchy( &mut self, value: bool ) -> &mut Self
Disable sharing outside of the group hierarchy.
Only available on top-level groups.
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.
sourcepub fn default_branch_protection_defaults(
&mut self,
value: BranchProtectionDefaults
) -> &mut Self
pub fn default_branch_protection_defaults( &mut self, value: BranchProtectionDefaults ) -> &mut Self
The default branch protection defaults for projects within the group.
Shared runner settings for 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 file_template_project_id(&mut self, value: u64) -> &mut Self
pub fn file_template_project_id(&mut self, value: u64) -> &mut Self
The project id to load custom file templates from.
sourcepub fn prevent_forking_outside_group(&mut self, value: bool) -> &mut Self
pub fn prevent_forking_outside_group(&mut self, value: bool) -> &mut Self
When enabled, users cannot fork projects from this group to other namespaces.
sourcepub fn wiki_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self
pub fn wiki_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self
The wiki access level.
sourcepub fn unique_project_download_limit(&mut self, value: u64) -> &mut Self
pub fn unique_project_download_limit(&mut self, value: u64) -> &mut Self
Maximum number of unique projects a user can download before being banned.
Only supported on top-level groups.
sourcepub fn unique_project_download_limit_interval(
&mut self,
value: Duration
) -> &mut Self
pub fn unique_project_download_limit_interval( &mut self, value: Duration ) -> &mut Self
The window (in seconds) where downloads will be counted.
Only supported on top-level groups.
sourcepub fn auto_ban_user_on_excessive_projects_download(
&mut self,
value: bool
) -> &mut Self
pub fn auto_ban_user_on_excessive_projects_download( &mut self, value: bool ) -> &mut Self
Ban users from the group when they exceed the download limit.
Only supported on top-level groups.
source§impl<'a> EditGroupBuilder<'a>
impl<'a> EditGroupBuilder<'a>
sourcepub fn ip_restriction_range<R>(&mut self, range: R) -> &mut Self
pub fn ip_restriction_range<R>(&mut self, range: R) -> &mut Self
An IP address or IP range that is allowed to access the group.
sourcepub fn ip_restriction_ranges<I, R>(&mut self, iter: I) -> &mut Self
pub fn ip_restriction_ranges<I, R>(&mut self, iter: I) -> &mut Self
A set of IP addresses or IP ranges that are allowed to access the group.
sourcepub fn unique_project_download_limit_allow<A>(&mut self, allow: A) -> &mut Self
pub fn unique_project_download_limit_allow<A>(&mut self, allow: A) -> &mut Self
A username excluded from the download limit.
sourcepub fn unique_project_download_limit_allow_users<I, A>(
&mut self,
iter: I
) -> &mut Self
pub fn unique_project_download_limit_allow_users<I, A>( &mut self, iter: I ) -> &mut Self
List of usernames excluded from the download limit.
sourcepub fn unique_project_download_limit_alert(&mut self, alert: u64) -> &mut Self
pub fn unique_project_download_limit_alert(&mut self, alert: u64) -> &mut Self
A user ID that is emailed when a download limit is exceeded.
sourcepub fn unique_project_download_limit_alert_users<I>(
&mut self,
iter: I
) -> &mut Self
pub fn unique_project_download_limit_alert_users<I>( &mut self, iter: I ) -> &mut Self
List of user IDs that are emailed when a download limit is exceeded.
Trait Implementations§
source§impl<'a> Clone for EditGroupBuilder<'a>
impl<'a> Clone for EditGroupBuilder<'a>
source§fn clone(&self) -> EditGroupBuilder<'a>
fn clone(&self) -> EditGroupBuilder<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for EditGroupBuilder<'a>
impl<'a> RefUnwindSafe for EditGroupBuilder<'a>
impl<'a> Send for EditGroupBuilder<'a>
impl<'a> Sync for EditGroupBuilder<'a>
impl<'a> Unpin for EditGroupBuilder<'a>
impl<'a> UnwindSafe for EditGroupBuilder<'a>
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more