pub struct CreateTimeEntryBuilder<'a> { /* private fields */ }
Expand description
Builder for CreateTimeEntry
.
Implementations§
Source§impl<'a> CreateTimeEntryBuilder<'a>
impl<'a> CreateTimeEntryBuilder<'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<CreateTimeEntry<'a>, CreateTimeEntryBuilderError>
pub fn build(&self) -> Result<CreateTimeEntry<'a>, CreateTimeEntryBuilderError>
Trait Implementations§
Source§impl<'a> Clone for CreateTimeEntryBuilder<'a>
impl<'a> Clone for CreateTimeEntryBuilder<'a>
Source§fn clone(&self) -> CreateTimeEntryBuilder<'a>
fn clone(&self) -> CreateTimeEntryBuilder<'a>
Returns a duplicate 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 CreateTimeEntryBuilder<'a>
impl<'a> RefUnwindSafe for CreateTimeEntryBuilder<'a>
impl<'a> Send for CreateTimeEntryBuilder<'a>
impl<'a> Sync for CreateTimeEntryBuilder<'a>
impl<'a> Unpin for CreateTimeEntryBuilder<'a>
impl<'a> UnwindSafe for CreateTimeEntryBuilder<'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