pub struct TimeEntry {
pub id: u64,
pub user: UserEssentials,
pub hours: f64,
pub activity: TimeEntryActivityEssentials,
pub comments: Option<String>,
pub issue: Option<IssueEssentials>,
pub project: Option<ProjectEssentials>,
pub spent_on: Option<Date>,
pub custom_fields: Option<Vec<CustomFieldEssentialsWithValue>>,
pub created_on: OffsetDateTime,
pub updated_on: OffsetDateTime,
}Expand description
a type for time entries to use as an API return type
alternatively you can use your own type limited to the fields you need
Fields§
§id: u64numeric id
user: UserEssentialsThe user spending the time
hours: f64the hours spent
activity: TimeEntryActivityEssentialsthe activity
comments: Option<String>the comment
issue: Option<IssueEssentials>issue the time was spent on
project: Option<ProjectEssentials>project
spent_on: Option<Date>day the time was spent on
custom_fields: Option<Vec<CustomFieldEssentialsWithValue>>custom fields with values
created_on: OffsetDateTimeThe time when this time entry was created
updated_on: OffsetDateTimeThe time when this time entry was last updated
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TimeEntry
impl<'de> Deserialize<'de> for TimeEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TimeEntry
impl RefUnwindSafe for TimeEntry
impl Send for TimeEntry
impl Sync for TimeEntry
impl Unpin for TimeEntry
impl UnwindSafe for TimeEntry
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