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_active(&mut self, value: bool) -> &mut Self
pub fn exclude_active(&mut self, value: bool) -> &mut Self
If set to true
, exclude active users.
Sourcepub fn exclude_humans(&mut self, value: bool) -> &mut Self
pub fn exclude_humans(&mut self, value: bool) -> &mut Self
If set to true
, exclude “human” users.
All users that are not bots or internal are considered “human”.
Sourcepub fn humans(&mut self, value: bool) -> &mut Self
pub fn humans(&mut self, value: bool) -> &mut Self
If set to true
, only include “human” users.
All users that are not bots or internal are considered “human”.
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>
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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