[][src]Struct gitlab::api::groups::GroupsBuilder

pub struct GroupsBuilder<'a> { /* fields omitted */ }

Builder for Groups.

Implementations

impl<'a> GroupsBuilder<'a>[src]

pub fn search<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self[src]

Search for groups using a query string.

The search query will be escaped automatically.

pub fn all_available(&mut self, value: bool) -> &mut Self[src]

Show all groups with access.

Note that the default for this endpoint differs based on whether the API caller has administrator privileges or not.

pub fn owned(&mut self, value: bool) -> &mut Self[src]

Filter owned by those owned by the API caller.

pub fn min_access_level(&mut self, value: AccessLevel) -> &mut Self[src]

Filter groups by those where the API caller has a minimum access level.

pub fn statistics(&mut self, value: bool) -> &mut Self[src]

Include project statistics in the results.

pub fn with_custom_attributes(&mut self, value: bool) -> &mut Self[src]

Include custom attributes in th response.

pub fn order_by(&mut self, value: GroupOrderBy) -> &mut Self[src]

Order results by a given key.

pub fn sort(&mut self, value: SortOrder) -> &mut Self[src]

The sort order for return results.

pub fn build(&self) -> Result<Groups<'a>, String>[src]

Builds a new Groups.

Errors

If a required field has not been initialized.

impl<'a> GroupsBuilder<'a>[src]

pub fn skip_group(&mut self, group: u64) -> &mut Self[src]

Skip the given group ID.

pub fn skip_groups<I>(&mut self, iter: I) -> &mut Self where
    I: Iterator<Item = u64>, 
[src]

Skip the given group IDs.

Trait Implementations

impl<'a> Clone for GroupsBuilder<'a>[src]

impl<'a> Default for GroupsBuilder<'a>[src]

Auto 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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.