pub struct WorklogBuilder { /* private fields */ }Implementations§
Source§impl WorklogBuilder
impl WorklogBuilder
pub fn new() -> Self
pub fn owner(self, owner: UserInfo) -> Self
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Set the worklog description.
Sourcepub fn start_time(self, start_time: DateTime<Local>) -> Self
pub fn start_time(self, start_time: DateTime<Local>) -> Self
Set the worklog start time.
Sourcepub fn exchange_rate(self, exchange_rate: f64) -> Self
pub fn exchange_rate(self, exchange_rate: f64) -> Self
Set the exchange rate for cost calculation.
Sourcepub fn mark_first_response(self) -> Self
pub fn mark_first_response(self) -> Self
Mark as first response.
Sourcepub fn include_nonoperational_hours(self) -> Self
pub fn include_nonoperational_hours(self) -> Self
Include non-operational hours in time calculation.
pub fn build(self) -> Result<WorklogData, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WorklogBuilder
impl RefUnwindSafe for WorklogBuilder
impl Send for WorklogBuilder
impl Sync for WorklogBuilder
impl Unpin for WorklogBuilder
impl UnsafeUnpin for WorklogBuilder
impl UnwindSafe for WorklogBuilder
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