[][src]Struct gitlab::api::groups::projects::GroupProjectsBuilder

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

Builder for GroupProjects.

Implementations

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

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

The group to query for projects.

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

Limit by archived status.

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

Limit by visibility public, internal, or private

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

Return projects ordered by keys.

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

Return projects sorted in asc or desc order.

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

Search for projects using a query string.

The search query will be escaped automatically.

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

Return only the ID, URL, name, and path of each project.

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

Limit by projects owned by the current user.

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

Limit by projects starred by the current user.

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

Limit by projects with issues feature enabled.

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

Limit by projects with merge requests feature enabled.

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

Include projects shared to this group.

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

Include projects in subgroups of this group.

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

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

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

Include custom attributes in response (admins only).

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

Return only projects that have security reports artifacts present in any of their builds.

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

Builds a new GroupProjects.

Errors

If a required field has not been initialized.

Trait Implementations

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

impl<'a> Default for GroupProjectsBuilder<'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.