Struct 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_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<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self

The default branch name for projects within the group.

Source

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

The default branch protection for projects within the group.

Source

pub fn enabled_git_access_protocol( &mut self, value: GitAccessProtocol, ) -> &mut Self

The allowed Git access protocols 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 duo_availability(&mut self, value: DuoAvailability) -> &mut Self

GitLab Duo availability setting for the group.

Source

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

Enable experiment features for the group.

Source

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

Enable math rendering limits for the group.

Source

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

Lock math rendering limits for the group.

Source

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

Enable GitLab Duo features for the group.

Source

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

Maximum size of artifacts in megabytes.

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 allowed_email_domain<D>(&mut self, domain: D) -> &mut Self
where D: Into<Cow<'a, str>>,

An email domain that is allowed to sign up for the group.

Source

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

A set of email domains that are allowed to sign up for 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 duplicate of the value. Read more
1.0.0 · Source§

const 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

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

Source§

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>,

Source§

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>,

Source§

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
Source§

impl<T> ErasedDestructor for T
where T: 'static,