[][src]Struct gitlab::api::projects::milestones::CreateProjectMilestoneBuilder

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

Implementations

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

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

The project to create a new milestone within.

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

The title of the milestone.

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

A short description for the milestone.

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

When the milestone is due.

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

When the milestone starts.

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

Builds a new CreateProjectMilestone.

Errors

If a required field has not been initialized.

Trait Implementations

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

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

Auto Trait Implementations

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.