pub struct CreateIssueBuilder<'a> { /* private fields */ }
Expand description
Builder for CreateIssue
.
Implementations§
Source§impl<'a> CreateIssueBuilder<'a>
impl<'a> CreateIssueBuilder<'a>
Sourcepub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
The project to add the issue to.
Sourcepub fn title<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn title<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
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 explicitly empty and
merge_request_to_resolve_discussions_of
is given, title
will not be sent allowing
GitLab to generate the default title.
Sourcepub fn iid(&mut self, value: u64) -> &mut Self
pub fn iid(&mut self, value: u64) -> &mut Self
The internal ID of the issue.
Requires administrator or owner permissions.
Sourcepub fn description<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn description<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The description of the new issue.
Sourcepub fn confidential(&mut self, value: bool) -> &mut Self
pub fn confidential(&mut self, value: bool) -> &mut Self
Whether the issue is confidential or not.
Sourcepub fn milestone_id(&mut self, value: u64) -> &mut Self
pub fn milestone_id(&mut self, value: u64) -> &mut Self
The ID of the milestone for the issue.
Sourcepub fn created_at(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn created_at(&mut self, value: DateTime<Utc>) -> &mut Self
The creation date of the issue.
Requires administrator or owner permissions.
Sourcepub fn merge_request_to_resolve_discussions_of(
&mut self,
value: u64,
) -> &mut Self
pub fn merge_request_to_resolve_discussions_of( &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.
Sourcepub fn discussion_to_resolve<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn discussion_to_resolve<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The ID of the discussion to resolve.
Sourcepub fn issue_type(&mut self, value: IssueType) -> &mut Self
pub fn issue_type(&mut self, value: IssueType) -> &mut Self
The type of issue.
Sourcepub fn build(&self) -> Result<CreateIssue<'a>, CreateIssueBuilderError>
pub fn build(&self) -> Result<CreateIssue<'a>, CreateIssueBuilderError>
Source§impl<'a> CreateIssueBuilder<'a>
impl<'a> CreateIssueBuilder<'a>
Sourcepub fn assignee_id(&mut self, assignee: u64) -> &mut Self
pub fn assignee_id(&mut self, assignee: u64) -> &mut Self
Assign the issue to a user.
Sourcepub fn assignee_ids<I>(&mut self, iter: I) -> &mut Self
pub fn assignee_ids<I>(&mut self, iter: I) -> &mut Self
Assign the issue to a set of users.
Trait Implementations§
Source§impl<'a> Clone for CreateIssueBuilder<'a>
impl<'a> Clone for CreateIssueBuilder<'a>
Source§fn clone(&self) -> CreateIssueBuilder<'a>
fn clone(&self) -> CreateIssueBuilder<'a>
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for CreateIssueBuilder<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more