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

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

Builder for CreateIssue.

Implementations

impl<'a> CreateIssueBuilder<'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 title<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self[src]

The title of the new issue.

Note: this is technically optional if merge_request_to_resolve_discussions_of is given, but to avoid more complicated shenanigans around choosing one or the other, this is always marked as required. Instead, if title is explictly empty and merge_request_to_resolve_discussions_of is given, title will not be sent allowing GitLab to generate the default title.

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

The internal ID of the issue.

Requires administrator or owner permissions.

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

The description of the new issue.

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

Whether the issue is confidential or not.

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

The ID of the milestone for the issue.

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

The creation date of the issue.

Requires administrator or owner permissions.

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

The due date for the issue.

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

The ID of a merge request for which to resolve the discussions.

Resolves all open discussions unless discussion_to_resolve is also passed.

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

The ID of the discussion to resolve.

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

The weight of the issue.

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<CreateIssue<'a>, String>[src]

Builds a new CreateIssue.

Errors

If a required field has not been initialized.

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

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]

Assign the issue to a set of users.

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

Add a label to the issue.

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.

Trait Implementations

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for CreateIssueBuilder<'a>

impl<'a> Send for CreateIssueBuilder<'a>

impl<'a> Sync for CreateIssueBuilder<'a>

impl<'a> Unpin for CreateIssueBuilder<'a>

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