pub struct ProjectsBuilder<'a> { /* private fields */ }
Expand description
Builder for Projects
.
Implementations
sourceimpl<'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 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.
Trait Implementations
sourceimpl<'a> Clone for ProjectsBuilder<'a>
impl<'a> Clone for ProjectsBuilder<'a>
sourcefn clone(&self) -> ProjectsBuilder<'a>
fn clone(&self) -> ProjectsBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for ProjectsBuilder<'a>
impl<'a> Send for ProjectsBuilder<'a>
impl<'a> Sync for ProjectsBuilder<'a>
impl<'a> Unpin for ProjectsBuilder<'a>
impl<'a> UnwindSafe for ProjectsBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more