pub struct CreateUserBuilder<'a> { /* private fields */ }Expand description
Builder for CreateUser.
Implementations§
source§impl<'a> CreateUserBuilder<'a>
impl<'a> CreateUserBuilder<'a>
sourcepub fn email<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn email<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The email of the user.
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 user.
sourcepub fn username<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn username<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The username of the user.
sourcepub fn password<VALUE: Into<NewUserPassword<'a>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn password<VALUE: Into<NewUserPassword<'a>>>( &mut self, value: VALUE, ) -> &mut Self
The password of the user.
sourcepub fn skip_confirmation(&mut self, value: bool) -> &mut Self
pub fn skip_confirmation(&mut self, value: bool) -> &mut Self
Skip confirmation for newly created user
sourcepub fn external(&mut self, value: bool) -> &mut Self
pub fn external(&mut self, value: bool) -> &mut Self
Whether the user is provided by an external entity or not.
sourcepub fn group_id_for_saml(&mut self, value: u64) -> &mut Self
pub fn group_id_for_saml(&mut self, value: u64) -> &mut Self
The ID of the group for SAML.
sourcepub fn note<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn note<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
Administrator notes for the user.
sourcepub fn external_provider(&mut self, value: ExternalProvider<'a>) -> &mut Self
pub fn external_provider(&mut self, value: ExternalProvider<'a>) -> &mut Self
Set the external provider identity for the user.
sourcepub fn color_scheme_id(&mut self, value: u64) -> &mut Self
pub fn color_scheme_id(&mut self, value: u64) -> &mut Self
The ID of the color scheme to use for the user.
sourcepub fn private_profile(&mut self, value: bool) -> &mut Self
pub fn private_profile(&mut self, value: bool) -> &mut Self
Whether the user’s profile is set to private or not.
sourcepub fn view_diffs_file_by_file(&mut self, value: bool) -> &mut Self
pub fn view_diffs_file_by_file(&mut self, value: bool) -> &mut Self
Whether the user prefers viewing diffs file-by-file or not.
sourcepub fn can_create_group(&mut self, value: bool) -> &mut Self
pub fn can_create_group(&mut self, value: bool) -> &mut Self
Whether the user can create groups or not.
Extra minutes on shared runners for the user.
sourcepub fn projects_limit(&mut self, value: u64) -> &mut Self
pub fn projects_limit(&mut self, value: u64) -> &mut Self
The number of projects the user may create.
The limit shared runners usage (in minutes) for the user.
sourcepub fn bio<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn bio<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
Biographical information about the user.
sourcepub fn commit_email<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn commit_email<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The user’s commit email address.
sourcepub fn linkedin<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn linkedin<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The user’s LinkedIn URL.
sourcepub fn location<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn location<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The user’s location.
sourcepub fn organization<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn organization<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The user’s organization.
sourcepub fn pronouns<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn pronouns<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The user’s pronouns.
sourcepub fn public_email<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn public_email<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The user’s public email address.
sourcepub fn skype<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn skype<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The user’s Skype ID.
sourcepub fn twitter<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn twitter<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The user’s Twitter ID.
sourcepub fn discord<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn discord<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The user’s Discord ID.
sourcepub fn website_url<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn website_url<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The user’s website URL.
sourcepub fn build(&self) -> Result<CreateUser<'a>, CreateUserBuilderError>
pub fn build(&self) -> Result<CreateUser<'a>, CreateUserBuilderError>
Trait Implementations§
source§impl<'a> Clone for CreateUserBuilder<'a>
impl<'a> Clone for CreateUserBuilder<'a>
source§fn clone(&self) -> CreateUserBuilder<'a>
fn clone(&self) -> CreateUserBuilder<'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 CreateUserBuilder<'a>
impl<'a> RefUnwindSafe for CreateUserBuilder<'a>
impl<'a> Send for CreateUserBuilder<'a>
impl<'a> Sync for CreateUserBuilder<'a>
impl<'a> Unpin for CreateUserBuilder<'a>
impl<'a> UnwindSafe for CreateUserBuilder<'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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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