[][src]Struct gitlab::api::groups::subgroups::GroupSubgroupsBuilder

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

Builder for GroupSubgroups.

Implementations

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

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

The group to query for subgroups.

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

Show all the groups you have access to (defaults to false for authenticated users, true for admin); Attributes owned and min_access_level have precedence.

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

Search for subgroup using a query string.

The search query will be escaped automatically.

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

Return subgroups ordered by keys.

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

Return subgroups sorted in asc or desc order.

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

Include group statistics (admins only).

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

Include custom attributes in response (admins only).

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

Limit by subgroups owned by the current user.

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

Limit to subgroups where current user has at least this access level.

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

Builds a new GroupSubgroups.

Errors

If a required field has not been initialized.

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

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

Filter results by skipping the given group ID.

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

Filter results by skipping the given group IDs.

Trait Implementations

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

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

Auto Trait Implementations

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.