Struct gitlab::api::groups::EditGroupBuilder

source ·
pub struct EditGroupBuilder<'a> { /* private fields */ }
Expand description

Builder for EditGroup.

Implementations§

source§

impl<'a> EditGroupBuilder<'a>

source

pub fn group<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self

The group to edit.

source

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

The name of the group.

source

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

The path of the group.

source

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

A short description for the group.

source

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

Prevent adding members directly to projects within the group.

source

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

The visibility of the group.

source

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

Prevent sharing a project in this group with another group.

source

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

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

source

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

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

source

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

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

source

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

Default to Auto DevOps for new projects in the group.

source

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

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

source

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

Disable email notifications from the group.

source

pub fn emails_enabled(&mut self, value: bool) -> &mut Self

Enable email notifications from the group.

source

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

Disable group-wide mentions.

source

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.

source

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

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

source

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

Whether access to the group may be requested.

source

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

The parent group ID (for subgroups).

source

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

The default branch protection for projects within the group.

source

pub fn default_branch_protection_defaults( &mut self, value: BranchProtectionDefaults ) -> &mut Self

The default branch protection defaults for projects within the group.

source

pub fn shared_runners_setting( &mut self, value: SharedRunnersSetting ) -> &mut Self

Shared runner settings for the group.

source

pub fn shared_runners_minutes_limit<VALUE: Into<SharedRunnersMinutesLimit>>( &mut self, value: VALUE ) -> &mut Self

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

source

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

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

source

pub fn file_template_project_id(&mut self, value: u64) -> &mut Self

The project id to load custom file templates from.

source

pub fn prevent_forking_outside_group(&mut self, value: bool) -> &mut Self

When enabled, users cannot fork projects from this group to other namespaces.

source

pub fn wiki_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self

The wiki access level.

source

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.

source

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.

source

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

pub fn build(&self) -> Result<EditGroup<'a>, EditGroupBuilderError>

Builds a new EditGroup.

§Errors

If a required field has not been initialized.

source§

impl<'a> EditGroupBuilder<'a>

source

pub fn ip_restriction_range<R>(&mut self, range: R) -> &mut Self
where R: Into<Cow<'a, str>>,

An IP address or IP range that is allowed to access the group.

source

pub fn ip_restriction_ranges<I, R>(&mut self, iter: I) -> &mut Self
where I: Iterator<Item = R>, R: Into<Cow<'a, str>>,

A set of IP addresses or IP ranges that are allowed to access the group.

source

pub fn unique_project_download_limit_allow<A>(&mut self, allow: A) -> &mut Self
where A: Into<Cow<'a, str>>,

A username excluded from the download limit.

source

pub fn unique_project_download_limit_allow_users<I, A>( &mut self, iter: I ) -> &mut Self
where I: Iterator<Item = A>, A: Into<Cow<'a, str>>,

List of usernames excluded from the download limit.

source

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.

source

pub fn unique_project_download_limit_alert_users<I>( &mut self, iter: I ) -> &mut Self
where I: Iterator<Item = u64>,

List of user IDs that are emailed when a download limit is exceeded.

Trait Implementations§

source§

impl<'a> Clone for EditGroupBuilder<'a>

source§

fn clone(&self) -> EditGroupBuilder<'a>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a> Default for EditGroupBuilder<'a>

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto 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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more