[][src]Struct gitlab::api::projects::issues::EditIssueBuilder

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

Builder for EditIssue.

Implementations

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

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

The project to add the issue to.

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

The internal IID of the issue.

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

The title of the new issue.

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

The description of the issue.

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

The ID of a milestone to add the issue to.

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

Change the state of the issue.

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

Set the last-updated time for the issue.

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

Set the due date for the issue.

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

Set the weight of the issue.

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

Set whether discussion of the issue should be locked or not.

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

The ID of the epic to add the issue to.

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

The internal ID of the epic to add the issue to.

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

Builds a new EditIssue.

Errors

If a required field has not been initialized.

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

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

👎 Deprecated:

use issue instead

Set the issue ID.

pub fn unassign(&mut self) -> &mut Self[src]

Unassign the issue.

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

Assign the issue to a user.

pub fn assignee_ids<I>(&mut self, iter: I) -> &mut Self where
    I: Iterator<Item = u64>, 
[src]

Assigne the issue to a set of users.

pub fn remove_labels(&mut self) -> &mut Self[src]

Remove all labels from the issue.

pub fn label<L>(&mut self, label: L) -> &mut Self where
    L: Into<Cow<'a, str>>, 
[src]

Add a label to the issue.

Note that the list of labels sent will replace the set on the instance. This only adds it to the list of labels to add to the set before sending it to the instance.

pub fn labels<I, L>(&mut self, iter: I) -> &mut Self where
    I: IntoIterator<Item = L>,
    L: Into<Cow<'a, str>>, 
[src]

Add a set of labels to the issue.

Note that the list of labels sent will replace the set on the instance. This only adds it to the list of labels to add to the set before sending it to the instance.

Trait Implementations

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for EditIssueBuilder<'a>

impl<'a> Send for EditIssueBuilder<'a>

impl<'a> Sync for EditIssueBuilder<'a>

impl<'a> Unpin for EditIssueBuilder<'a>

impl<'a> UnwindSafe for EditIssueBuilder<'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.