pub struct GroupProjectsBuilder<'a> { /* private fields */ }
Expand description
Builder for GroupProjects
.
Implementations§
source§impl<'a> GroupProjectsBuilder<'a>
impl<'a> GroupProjectsBuilder<'a>
sourcepub fn group<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn group<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
The group to query for projects.
sourcepub fn visibility(&mut self, value: VisibilityLevel) -> &mut Self
pub fn visibility(&mut self, value: VisibilityLevel) -> &mut Self
Limit by visibility public, internal, or private
sourcepub fn order_by(&mut self, value: GroupProjectsOrderBy) -> &mut Self
pub fn order_by(&mut self, value: GroupProjectsOrderBy) -> &mut Self
Return projects ordered by keys.
sourcepub fn sort(&mut self, value: SortOrder) -> &mut Self
pub fn sort(&mut self, value: SortOrder) -> &mut Self
Return projects sorted in asc or desc order.
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 projects using a query string.
The search query will be escaped automatically.
sourcepub fn simple(&mut self, value: bool) -> &mut Self
pub fn simple(&mut self, value: bool) -> &mut Self
Return only the ID, URL, name, and path of each project.
sourcepub fn starred(&mut self, value: bool) -> &mut Self
pub fn starred(&mut self, value: bool) -> &mut Self
Limit by projects starred by the current user.
sourcepub fn with_issues_enabled(&mut self, value: bool) -> &mut Self
pub fn with_issues_enabled(&mut self, value: bool) -> &mut Self
Limit by projects with issues feature enabled.
sourcepub fn with_merge_requests_enabled(&mut self, value: bool) -> &mut Self
pub fn with_merge_requests_enabled(&mut self, value: bool) -> &mut Self
Limit by projects with merge requests feature enabled.
Include projects shared to this group.
sourcepub fn include_subgroups(&mut self, value: bool) -> &mut Self
pub fn include_subgroups(&mut self, value: bool) -> &mut Self
Include projects in subgroups of this group.
sourcepub fn min_access_level(&mut self, value: AccessLevel) -> &mut Self
pub fn min_access_level(&mut self, value: AccessLevel) -> &mut Self
Limit to projects where current user has at least this access level.
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 response (admins only).
sourcepub fn with_security_reports(&mut self, value: bool) -> &mut Self
pub fn with_security_reports(&mut self, value: bool) -> &mut Self
Return only projects that have security reports artifacts present in any of their builds.
sourcepub fn build(&self) -> Result<GroupProjects<'a>, GroupProjectsBuilderError>
pub fn build(&self) -> Result<GroupProjects<'a>, GroupProjectsBuilderError>
Trait Implementations§
source§impl<'a> Clone for GroupProjectsBuilder<'a>
impl<'a> Clone for GroupProjectsBuilder<'a>
source§fn clone(&self) -> GroupProjectsBuilder<'a>
fn clone(&self) -> GroupProjectsBuilder<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for GroupProjectsBuilder<'a>
impl<'a> RefUnwindSafe for GroupProjectsBuilder<'a>
impl<'a> Send for GroupProjectsBuilder<'a>
impl<'a> Sync for GroupProjectsBuilder<'a>
impl<'a> Unpin for GroupProjectsBuilder<'a>
impl<'a> UnwindSafe for GroupProjectsBuilder<'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> 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