pub struct EditIssueBuilder<'a> { /* private fields */ }
Expand description
Builder for EditIssue
.
Implementations§
source§impl<'a> EditIssueBuilder<'a>
impl<'a> EditIssueBuilder<'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.
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 issue.
sourcepub fn milestone_id(&mut self, value: u64) -> &mut Self
pub fn milestone_id(&mut self, value: u64) -> &mut Self
The ID of a milestone to add the issue to.
sourcepub fn state_event(&mut self, value: IssueStateEvent) -> &mut Self
pub fn state_event(&mut self, value: IssueStateEvent) -> &mut Self
Change the state of the issue.
sourcepub fn updated_at(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn updated_at(&mut self, value: DateTime<Utc>) -> &mut Self
Set the last-updated time for the issue.
sourcepub fn discussion_locked(&mut self, value: bool) -> &mut Self
pub fn discussion_locked(&mut self, value: bool) -> &mut Self
Set whether discussion of the issue should be locked or not.
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 epic_iid(&mut self, value: u64) -> &mut Self
pub fn epic_iid(&mut self, value: u64) -> &mut Self
The internal ID of the epic to add the issue to.
sourcepub fn confidential(&mut self, value: bool) -> &mut Self
pub fn confidential(&mut self, value: bool) -> &mut Self
Updates an issue to be confidential
source§impl<'a> EditIssueBuilder<'a>
impl<'a> EditIssueBuilder<'a>
sourcepub fn issue_iid(&mut self, issue_iid: u64) -> &mut Self
👎Deprecated: use issue
instead
pub fn issue_iid(&mut self, issue_iid: u64) -> &mut Self
issue
insteadSet the issue ID.
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
Assigne the issue to a set of users.
sourcepub fn remove_labels(&mut self) -> &mut Self
👎Deprecated: use clear_labels
instead
pub fn remove_labels(&mut self) -> &mut Self
clear_labels
insteadRemove all labels from the issue.
sourcepub fn clear_labels(&mut self) -> &mut Self
pub fn clear_labels(&mut self) -> &mut Self
Remove all labels from the issue.
sourcepub fn label<L>(&mut self, label: L) -> &mut Self
pub fn label<L>(&mut self, label: L) -> &mut Self
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.
See: add_label
.
sourcepub fn labels<I, L>(&mut self, iter: I) -> &mut Self
pub fn labels<I, L>(&mut self, iter: I) -> &mut Self
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.
See: add_label
.
Trait Implementations§
source§impl<'a> Clone for EditIssueBuilder<'a>
impl<'a> Clone for EditIssueBuilder<'a>
source§fn clone(&self) -> EditIssueBuilder<'a>
fn clone(&self) -> EditIssueBuilder<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for EditIssueBuilder<'a>
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§
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> 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