Struct redmine_api::api::issues::UpdateIssueBuilder
source · pub struct UpdateIssueBuilder<'a> { /* private fields */ }
Expand description
Builder for UpdateIssue
.
Implementations§
source§impl<'a> UpdateIssueBuilder<'a>
impl<'a> UpdateIssueBuilder<'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 private_notes(&mut self, value: bool) -> &mut Self
pub fn private_notes(&mut self, value: bool) -> &mut Self
is the added comment/note private
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<UpdateIssue<'a>, UpdateIssueBuilderError>
pub fn build(&self) -> Result<UpdateIssue<'a>, UpdateIssueBuilderError>
Trait Implementations§
source§impl<'a> Clone for UpdateIssueBuilder<'a>
impl<'a> Clone for UpdateIssueBuilder<'a>
source§fn clone(&self) -> UpdateIssueBuilder<'a>
fn clone(&self) -> UpdateIssueBuilder<'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 UpdateIssueBuilder<'a>
impl<'a> RefUnwindSafe for UpdateIssueBuilder<'a>
impl<'a> Send for UpdateIssueBuilder<'a>
impl<'a> Sync for UpdateIssueBuilder<'a>
impl<'a> Unpin for UpdateIssueBuilder<'a>
impl<'a> UnwindSafe for UpdateIssueBuilder<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)