Struct gitlab::api::users::UsersBuilder
source · pub struct UsersBuilder<'a> { /* private fields */ }
Expand description
Builder for Users
.
Implementations§
source§impl<'a> UsersBuilder<'a>
impl<'a> UsersBuilder<'a>
sourcepub fn search<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn search<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
Search for users using a query string.
The search query will be escaped automatically.
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
Get a user with a given username.
sourcepub fn external_provider(&mut self, value: ExternalProvider<'a>) -> &mut Self
pub fn external_provider(&mut self, value: ExternalProvider<'a>) -> &mut Self
Search for a user with a given external provider identity.
sourcepub fn created_before(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn created_before(&mut self, value: DateTime<Utc>) -> &mut Self
Return users created before a given date.
sourcepub fn created_after(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn created_after(&mut self, value: DateTime<Utc>) -> &mut Self
Return users created after a given date.
sourcepub fn with_custom_attributes(&mut self, value: bool) -> &mut Self
pub fn with_custom_attributes(&mut self, value: bool) -> &mut Self
Provide custom attributes as well.
sourcepub fn order_by(&mut self, value: UserOrderBy) -> &mut Self
pub fn order_by(&mut self, value: UserOrderBy) -> &mut Self
Order results by a given key.
sourcepub fn two_factor<VALUE: Into<EnableState>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn two_factor<VALUE: Into<EnableState>>( &mut self, value: VALUE ) -> &mut Self
Return users with a two-factor enabled or not.
sourcepub fn without_projects(&mut self, value: bool) -> &mut Self
pub fn without_projects(&mut self, value: bool) -> &mut Self
If set to true
, filter out users without any projects.
sourcepub fn without_project_bots(&mut self, value: bool) -> &mut Self
pub fn without_project_bots(&mut self, value: bool) -> &mut Self
If set to true
, filter out bot users for projects.
sourcepub fn exclude_internal(&mut self, value: bool) -> &mut Self
pub fn exclude_internal(&mut self, value: bool) -> &mut Self
Exclude internal users.
These are generally Service Desk users or other GitLab-managed users.
sourcepub fn exclude_external(&mut self, value: bool) -> &mut Self
pub fn exclude_external(&mut self, value: bool) -> &mut Self
Exclude external users.
sourcepub fn saml_provider_id(&mut self, value: u64) -> &mut Self
pub fn saml_provider_id(&mut self, value: u64) -> &mut Self
If provided, only return users created by the given SAML provider ID.
source§impl<'a> UsersBuilder<'a>
impl<'a> UsersBuilder<'a>
sourcepub fn custom_attribute<K, V>(&mut self, key: K, value: V) -> &mut Self
pub fn custom_attribute<K, V>(&mut self, key: K, value: V) -> &mut Self
Add a custom attribute search parameter.
Trait Implementations§
source§impl<'a> Clone for UsersBuilder<'a>
impl<'a> Clone for UsersBuilder<'a>
source§fn clone(&self) -> UsersBuilder<'a>
fn clone(&self) -> UsersBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for UsersBuilder<'a>
impl<'a> RefUnwindSafe for UsersBuilder<'a>
impl<'a> Send for UsersBuilder<'a>
impl<'a> Sync for UsersBuilder<'a>
impl<'a> Unpin for UsersBuilder<'a>
impl<'a> UnwindSafe for UsersBuilder<'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
Mutably borrows from an owned value. Read more
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>
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 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>
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