pub struct TimeEntry {
pub id: String,
pub project_id: String,
pub work_item_id: String,
pub contributor_did: String,
pub agreement_id: Option<String>,
pub minutes: u32,
pub reimbursable_expense_cents: i64,
pub note: String,
pub logged_at_unix: u32,
}Expand description
Logged time/expense against a work item. Produces a Stage 2 ActivityAndResources record
(and NEVER directly mints a payable LifecycleObligation without the 9-stage lifecycle).
Fields§
§id: String§project_id: String§work_item_id: String§contributor_did: String§agreement_id: Option<String>§minutes: u32§reimbursable_expense_cents: i64§note: String§logged_at_unix: u32Implementations§
Source§impl TimeEntry
impl TimeEntry
Sourcepub fn to_activity_record(&self) -> ActivityAndResources
pub fn to_activity_record(&self) -> ActivityAndResources
Convert this TimeEntry into a Stage 2 ActivityAndResources record.
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
impl Eq for TimeEntry
impl StructuralPartialEq for TimeEntry
Auto Trait Implementations§
impl Freeze for TimeEntry
impl RefUnwindSafe for TimeEntry
impl Send for TimeEntry
impl Sync for TimeEntry
impl Unpin for TimeEntry
impl UnsafeUnpin 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