Struct gitlab::api::projects::ProjectsBuilder[][src]

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

Builder for Projects.

Implementations

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

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 archived(&mut self, value: bool) -> &mut Self[src]

Filter projects by its archived state.

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

Filter projects by its visibility.

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

Search ancestor namespaces when matching filters.

Defaults to false.

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

Return only simple fields for search results.

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

Filter projects by those owned by the API caller.

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

Filter projects by those the API caller is a member of.

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

Filter projects by those the API caller has starred.

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

Include project statistics in the results.

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

Filter projects by whether issues are enabled.

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

Filter projects by whether merge requests are enabled.

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

Filter projects by programming language.

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

Filter projects by those with a failing wiki checksum.

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

Filter projects by those with a failing repository checksum.

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

Filter projects by those where the API caller has a minimum access level.

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

Search for projects with custom attributes.

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

Filter projects by those with at least this ID.

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

Filter projects by those with at most this ID.

pub fn last_activity_after(&mut self, value: DateTime<Utc>) -> &mut Self[src]

Filter projects by those with activity after this date.

pub fn last_activity_before(&mut self, value: DateTime<Utc>) -> &mut Self[src]

Filter projects by those without activity before this date.

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

Filter projects by which storage backend the repository is on.

Available to administrators only.

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

Order results by a given key.

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

The sort order for return results.

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

Builds a new Projects.

Errors

If a required field has not been initialized.

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

pub fn custom_attribute<K, V>(&mut self, key: K, value: V) -> &mut Self where
    K: Into<Cow<'a, str>>,
    V: Into<Cow<'a, str>>, 
[src]

Add a custom attribute search parameter.

pub fn custom_attributes<I, K, V>(&mut self, iter: I) -> &mut Self where
    I: Iterator<Item = (K, V)>,
    K: Into<Cow<'a, str>>,
    V: Into<Cow<'a, str>>, 
[src]

Add multiple custom attribute search parameters.

Trait Implementations

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

fn clone(&self) -> ProjectsBuilder<'a>[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

fn default() -> ProjectsBuilder<'a>[src]

Returns the “default value” for a type. 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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.