pub struct CreateIssueBuilder<'a> { /* private fields */ }
Expand description
Builder for CreateIssue
.
Implementations§
Source§impl<'a> CreateIssueBuilder<'a>
impl<'a> CreateIssueBuilder<'a>
Sourcepub fn project_id(&mut self, value: u64) -> &mut Self
pub fn project_id(&mut self, value: u64) -> &mut Self
project for the issue
Sourcepub fn tracker_id(&mut self, value: u64) -> &mut Self
pub fn tracker_id(&mut self, value: u64) -> &mut Self
tracker for the issue
Sourcepub fn priority_id(&mut self, value: u64) -> &mut Self
pub fn priority_id(&mut self, value: u64) -> &mut Self
issue priority
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
issue description
Sourcepub fn category_id(&mut self, value: u64) -> &mut Self
pub fn category_id(&mut self, value: u64) -> &mut Self
issue category
Sourcepub fn version(&mut self, value: u64) -> &mut Self
pub fn version(&mut self, value: u64) -> &mut Self
ID of the Target Versions (previously called ‘Fixed Version’ and still referred to as such in the API)
Sourcepub fn assigned_to_id(&mut self, value: u64) -> &mut Self
pub fn assigned_to_id(&mut self, value: u64) -> &mut Self
user/group id the issue will be assigned to
Sourcepub fn parent_issue_id(&mut self, value: u64) -> &mut Self
pub fn parent_issue_id(&mut self, value: u64) -> &mut Self
Id of the parent issue
Sourcepub fn custom_fields(&mut self, value: Vec<CustomField<'a>>) -> &mut Self
pub fn custom_fields(&mut self, value: Vec<CustomField<'a>>) -> &mut Self
custom field values
Sourcepub fn watcher_user_ids(&mut self, value: Vec<u64>) -> &mut Self
pub fn watcher_user_ids(&mut self, value: Vec<u64>) -> &mut Self
user ids of watchers of the issue
Sourcepub fn is_private(&mut self, value: bool) -> &mut Self
pub fn is_private(&mut self, value: bool) -> &mut Self
is the issue private (only visible to roles that have the relevant permission enabled)
Sourcepub fn estimated_hours(&mut self, value: f64) -> &mut Self
pub fn estimated_hours(&mut self, value: f64) -> &mut Self
estimated hours it will take to implement this issue
Sourcepub fn uploads(&mut self, value: Vec<UploadedAttachment<'a>>) -> &mut Self
pub fn uploads(&mut self, value: Vec<UploadedAttachment<'a>>) -> &mut Self
attachments (files)
Sourcepub fn build(&self) -> Result<CreateIssue<'a>, CreateIssueBuilderError>
pub fn build(&self) -> Result<CreateIssue<'a>, CreateIssueBuilderError>
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>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Mutably borrows from an owned value. Read more