Struct gitlab::api::projects::ProjectsBuilder
source · pub struct ProjectsBuilder<'a> { /* private fields */ }Expand description
Builder for Projects.
Implementations§
source§impl<'a> ProjectsBuilder<'a>
impl<'a> ProjectsBuilder<'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 projects using a query string.
The search query will be escaped automatically.
sourcepub fn visibility(&mut self, value: VisibilityLevel) -> &mut Self
pub fn visibility(&mut self, value: VisibilityLevel) -> &mut Self
Filter projects by its visibility.
sourcepub fn search_namespaces(&mut self, value: bool) -> &mut Self
pub fn search_namespaces(&mut self, value: bool) -> &mut Self
Search ancestor namespaces when matching filters.
Defaults to false.
sourcepub fn simple(&mut self, value: bool) -> &mut Self
pub fn simple(&mut self, value: bool) -> &mut Self
Return only simple fields for search results.
sourcepub fn owned(&mut self, value: bool) -> &mut Self
pub fn owned(&mut self, value: bool) -> &mut Self
Filter projects by those owned by the API caller.
sourcepub fn membership(&mut self, value: bool) -> &mut Self
pub fn membership(&mut self, value: bool) -> &mut Self
Filter projects by those the API caller is a member of.
sourcepub fn starred(&mut self, value: bool) -> &mut Self
pub fn starred(&mut self, value: bool) -> &mut Self
Filter projects by those the API caller has starred.
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_issues_enabled(&mut self, value: bool) -> &mut Self
pub fn with_issues_enabled(&mut self, value: bool) -> &mut Self
Filter projects by whether issues are 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
Filter projects by whether merge requests are enabled.
sourcepub fn with_programming_language<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn with_programming_language<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
Filter projects by programming language.
sourcepub fn wiki_checksum_failed(&mut self, value: bool) -> &mut Self
pub fn wiki_checksum_failed(&mut self, value: bool) -> &mut Self
Filter projects by those with a failing wiki checksum.
sourcepub fn repository_checksum_failed(&mut self, value: bool) -> &mut Self
pub fn repository_checksum_failed(&mut self, value: bool) -> &mut Self
Filter projects by those with a failing repository checksum.
sourcepub fn min_access_level(&mut self, value: AccessLevel) -> &mut Self
pub fn min_access_level(&mut self, value: AccessLevel) -> &mut Self
Filter projects by those where the API caller has a minimum access level.
sourcepub fn with_custom_attributes(&mut self, value: bool) -> &mut Self
pub fn with_custom_attributes(&mut self, value: bool) -> &mut Self
Search for projects with custom attributes.
sourcepub fn topic_id(&mut self, value: u64) -> &mut Self
pub fn topic_id(&mut self, value: u64) -> &mut Self
Filter projects to those with the given topic ID.
sourcepub fn id_after(&mut self, value: u64) -> &mut Self
pub fn id_after(&mut self, value: u64) -> &mut Self
Filter projects by those with at least this ID.
sourcepub fn id_before(&mut self, value: u64) -> &mut Self
pub fn id_before(&mut self, value: u64) -> &mut Self
Filter projects by those with at most this ID.
sourcepub fn last_activity_after(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn last_activity_after(&mut self, value: DateTime<Utc>) -> &mut Self
Filter projects by those with activity after this date.
sourcepub fn last_activity_before(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn last_activity_before(&mut self, value: DateTime<Utc>) -> &mut Self
Filter projects by those without activity before this date.
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
Filter projects by which storage backend the repository is on.
Available to administrators only.
sourcepub fn order_by(&mut self, value: ProjectOrderBy) -> &mut Self
pub fn order_by(&mut self, value: ProjectOrderBy) -> &mut Self
Order results by a given key.
source§impl<'a> ProjectsBuilder<'a>
impl<'a> ProjectsBuilder<'a>
sourcepub fn topic<T>(&mut self, topic: T) -> &mut Selfwhere
T: Into<Cow<'a, str>>,
pub fn topic<T>(&mut self, topic: T) -> &mut Selfwhere T: Into<Cow<'a, str>>,
Add a custom attribute search parameter.
sourcepub fn topics<I, T>(&mut self, iter: I) -> &mut Selfwhere
I: Iterator<Item = T>,
T: Into<Cow<'a, str>>,
pub fn topics<I, T>(&mut self, iter: I) -> &mut Selfwhere I: Iterator<Item = T>, T: Into<Cow<'a, str>>,
Add multiple custom attribute search parameters.
Trait Implementations§
source§impl<'a> Clone for ProjectsBuilder<'a>
impl<'a> Clone for ProjectsBuilder<'a>
source§fn clone(&self) -> ProjectsBuilder<'a>
fn clone(&self) -> ProjectsBuilder<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more