[−][src]Struct gitlab::api::projects::issues::CreateIssueBuilder
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]
&mut self,
value: VALUE
) -> &mut Self
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]
&mut self,
value: u64
) -> &mut Self
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]
&mut self,
value: VALUE
) -> &mut Self
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]
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]
I: Iterator<Item = u64>,
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]
L: Into<Cow<'a, str>>,
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]
I: IntoIterator<Item = L>,
L: Into<Cow<'a, str>>,
Add a set of labels to the issue.
Trait Implementations
impl<'a> Clone for CreateIssueBuilder<'a>
[src]
fn clone(&self) -> CreateIssueBuilder<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Default for CreateIssueBuilder<'a>
[src]
fn default() -> 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,