Struct redmine_api::api::issues::CreateIssueBuilder
source · [−]pub struct CreateIssueBuilder<'a> { /* private fields */ }
Expand description
Builder for CreateIssue
.
Implementations
sourceimpl<'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
sourceimpl<'a> Clone for CreateIssueBuilder<'a>
impl<'a> Clone for CreateIssueBuilder<'a>
sourcefn clone(&self) -> CreateIssueBuilder<'a>
fn clone(&self) -> CreateIssueBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more