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> Freeze for UpdateTimeEntryBuilder<'a>
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