pub struct CreateGroupBuilder<'a> { /* private fields */ }
Expand description

Builder for CreateGroup.

Implementations§

source§

impl<'a> CreateGroupBuilder<'a>

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 mentions_disabled(&mut self, value: bool) -> &mut Self

Disable group-wide mentions.

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 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 build(&self) -> Result<CreateGroup<'a>, CreateGroupBuilderError>

Builds a new CreateGroup.

Errors

If a required field has not been initialized.

Trait Implementations§

source§

impl<'a> Clone for CreateGroupBuilder<'a>

source§

fn clone(&self) -> CreateGroupBuilder<'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 CreateGroupBuilder<'a>

source§

fn default() -> Self

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

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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> ToOwned for Twhere 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 Twhere 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 Twhere 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