pub struct CreateTimeEntryRequest<'a> {
pub user_id: Option<i64>,
pub project_id: Option<i64>,
pub task_id: Option<i64>,
pub spent_date: Option<String>,
pub started_time: Option<String>,
pub ended_time: Option<String>,
pub notes: Option<String>,
pub external_reference: Option<Value>,
pub hours: Option<f64>,
/* private fields */
}Expand description
Create this with the associated client method.
That method takes required values as arguments. Set optional values using builder methods on this struct.
Fields§
§user_id: Option<i64>§project_id: Option<i64>§task_id: Option<i64>§spent_date: Option<String>§started_time: Option<String>§ended_time: Option<String>§notes: Option<String>§external_reference: Option<Value>§hours: Option<f64>Implementations§
Source§impl<'a> CreateTimeEntryRequest<'a>
impl<'a> CreateTimeEntryRequest<'a>
pub async fn send(self) -> Result<TimeEntry>
pub fn user_id(self, user_id: i64) -> Self
pub fn project_id(self, project_id: i64) -> Self
pub fn task_id(self, task_id: i64) -> Self
pub fn spent_date(self, spent_date: &str) -> Self
pub fn started_time(self, started_time: &str) -> Self
pub fn ended_time(self, ended_time: &str) -> Self
pub fn notes(self, notes: &str) -> Self
pub fn external_reference(self, external_reference: Value) -> Self
pub fn hours(self, hours: f64) -> Self
Auto Trait Implementations§
impl<'a> Freeze for CreateTimeEntryRequest<'a>
impl<'a> !RefUnwindSafe for CreateTimeEntryRequest<'a>
impl<'a> Send for CreateTimeEntryRequest<'a>
impl<'a> Sync for CreateTimeEntryRequest<'a>
impl<'a> Unpin for CreateTimeEntryRequest<'a>
impl<'a> !UnwindSafe for CreateTimeEntryRequest<'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