Struct gitlab::api::groups::GroupsBuilder
source · pub struct GroupsBuilder<'a> { /* private fields */ }Expand description
Builder for Groups.
Implementations§
source§impl<'a> GroupsBuilder<'a>
impl<'a> GroupsBuilder<'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 groups using a query string.
The search query will be escaped automatically.
sourcepub fn all_available(&mut self, value: bool) -> &mut Self
pub fn all_available(&mut self, value: bool) -> &mut Self
Show all groups with access.
Note that the default for this endpoint differs based on whether the API caller has administrator privileges or not.
sourcepub fn owned(&mut self, value: bool) -> &mut Self
pub fn owned(&mut self, value: bool) -> &mut Self
Filter owned by those owned by the API caller.
sourcepub fn min_access_level(&mut self, value: AccessLevel) -> &mut Self
pub fn min_access_level(&mut self, value: AccessLevel) -> &mut Self
Filter groups by those where the API caller has a minimum access level.
sourcepub fn top_level_only(&mut self, value: bool) -> &mut Self
pub fn top_level_only(&mut self, value: bool) -> &mut Self
Only return top-level groups.
sourcepub fn repository_storage<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn repository_storage<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
The storage shard used by the group.
sourcepub fn statistics(&mut self, value: bool) -> &mut Self
pub fn statistics(&mut self, value: bool) -> &mut Self
Include project statistics in the results.
sourcepub fn with_custom_attributes(&mut self, value: bool) -> &mut Self
pub fn with_custom_attributes(&mut self, value: bool) -> &mut Self
Include custom attributes in the response.
sourcepub fn order_by(&mut self, value: GroupOrderBy) -> &mut Self
pub fn order_by(&mut self, value: GroupOrderBy) -> &mut Self
Order results by a given key.
source§impl<'a> GroupsBuilder<'a>
impl<'a> GroupsBuilder<'a>
sourcepub fn skip_group(&mut self, group: u64) -> &mut Self
pub fn skip_group(&mut self, group: u64) -> &mut Self
Skip the given group ID.
sourcepub fn skip_groups<I>(&mut self, iter: I) -> &mut Self
pub fn skip_groups<I>(&mut self, iter: I) -> &mut Self
Skip the given group IDs.
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 GroupsBuilder<'a>
impl<'a> Clone for GroupsBuilder<'a>
source§fn clone(&self) -> GroupsBuilder<'a>
fn clone(&self) -> GroupsBuilder<'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> RefUnwindSafe for GroupsBuilder<'a>
impl<'a> Send for GroupsBuilder<'a>
impl<'a> Sync for GroupsBuilder<'a>
impl<'a> Unpin for GroupsBuilder<'a>
impl<'a> UnwindSafe for GroupsBuilder<'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