[][src]Struct gitlab::api::projects::labels::CreateLabelBuilder

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

Builder for CreateLabel.

Implementations

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

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

The project to create a label within.

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

The name of the label.

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

The color of the label.

CSS and RGB colors in #RRGGBB format are supported.

TODO: Use a specific structure for this.

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

The description of the label.

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

The priority of the label.

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

Builds a new CreateLabel.

Errors

If a required field has not been initialized.

Trait Implementations

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for CreateLabelBuilder<'a>

impl<'a> Send for CreateLabelBuilder<'a>

impl<'a> Sync for CreateLabelBuilder<'a>

impl<'a> Unpin for CreateLabelBuilder<'a>

impl<'a> UnwindSafe for CreateLabelBuilder<'a>

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.