Struct redmine_api::api::time_entries::UpdateTimeEntryBuilder
source · pub struct UpdateTimeEntryBuilder<'a> { /* private fields */ }
Expand description
Builder for UpdateTimeEntry
.
Implementations§
source§impl<'a> UpdateTimeEntryBuilder<'a>
impl<'a> UpdateTimeEntryBuilder<'a>
sourcepub fn issue_id(&mut self, value: u64) -> &mut Self
pub fn issue_id(&mut self, value: u64) -> &mut Self
Issue id is required if project_id is not specified
sourcepub fn project_id(&mut self, value: u64) -> &mut Self
pub fn project_id(&mut self, value: u64) -> &mut Self
Project id is required if issue_id is not specified
sourcepub fn spent_on(&mut self, value: Date) -> &mut Self
pub fn spent_on(&mut self, value: Date) -> &mut Self
The date the time was spent, default is today
sourcepub fn activity_id(&mut self, value: u64) -> &mut Self
pub fn activity_id(&mut self, value: u64) -> &mut Self
This is required unless there is a default activity defined in Redmine
sourcepub fn comments(&mut self, value: Cow<'a, str>) -> &mut Self
pub fn comments(&mut self, value: Cow<'a, str>) -> &mut Self
Short description for the entry (255 characters max)
sourcepub fn user_id(&mut self, value: u64) -> &mut Self
pub fn user_id(&mut self, value: u64) -> &mut Self
User Id is only required when posting time on behalf of another user, defaults to current user
sourcepub fn build(&self) -> Result<UpdateTimeEntry<'a>, UpdateTimeEntryBuilderError>
pub fn build(&self) -> Result<UpdateTimeEntry<'a>, UpdateTimeEntryBuilderError>
Trait Implementations§
source§impl<'a> Clone for UpdateTimeEntryBuilder<'a>
impl<'a> Clone for UpdateTimeEntryBuilder<'a>
source§fn clone(&self) -> UpdateTimeEntryBuilder<'a>
fn clone(&self) -> UpdateTimeEntryBuilder<'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> RefUnwindSafe for UpdateTimeEntryBuilder<'a>
impl<'a> Send for UpdateTimeEntryBuilder<'a>
impl<'a> Sync for UpdateTimeEntryBuilder<'a>
impl<'a> Unpin for UpdateTimeEntryBuilder<'a>
impl<'a> UnwindSafe for UpdateTimeEntryBuilder<'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