pub struct TimeLog {
pub spent_at: DateTime<Local>,
pub time_spent: Duration,
pub summary: Option<String>,
pub user: User,
pub trackable_item: TrackableItem,
}Expand description
A single entry of time spent on an issue or merge request.
Fields§
§spent_at: DateTime<Local>The date the time was spent. Is always set to a valid date in the API.
time_spent: DurationThe entered time that was spent.
summary: Option<String>The optional summary of what was done during the time.
Empty summaries are returned as empty strings by the GitLab API and turned into None.
user: UserThe user who spent the time.
trackable_item: TrackableItemThe Issue or Merge Request the time that was spent on.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TimeLog
impl<'de> Deserialize<'de> for TimeLog
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
impl StructuralPartialEq for TimeLog
Auto Trait Implementations§
impl Freeze for TimeLog
impl RefUnwindSafe for TimeLog
impl Send for TimeLog
impl Sync for TimeLog
impl Unpin for TimeLog
impl UnwindSafe for TimeLog
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