pub struct TaskRecord { /* private fields */ }Expand description
Projection record for a task with timestamp metadata.
Implementations§
Source§impl TaskRecord
impl TaskRecord
Sourcepub fn created_at(&self) -> u64
pub fn created_at(&self) -> u64
Returns the task creation timestamp.
Sourcepub fn updated_at(&self) -> Option<u64>
pub fn updated_at(&self) -> Option<u64>
Returns the task update timestamp, if any.
Sourcepub fn canceled_at(&self) -> Option<u64>
pub fn canceled_at(&self) -> Option<u64>
Returns the task cancellation timestamp, if canceled.
Trait Implementations§
Source§impl Clone for TaskRecord
impl Clone for TaskRecord
Source§fn clone(&self) -> TaskRecord
fn clone(&self) -> TaskRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TaskRecord
impl RefUnwindSafe for TaskRecord
impl Send for TaskRecord
impl Sync for TaskRecord
impl Unpin for TaskRecord
impl UnsafeUnpin for TaskRecord
impl UnwindSafe for TaskRecord
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