pub struct ThreadItem {
pub payload: ThreadItemPayload,
pub started_at_ms: Option<i64>,
pub completed_at_ms: Option<i64>,
}Expand description
A thread item and its recorded lifecycle times. The payload stays flat on the wire.
Fields§
§payload: ThreadItemPayload§started_at_ms: Option<i64>Unix timestamp in milliseconds when the item started, if recorded.
completed_at_ms: Option<i64>Unix timestamp in milliseconds when the item completed, if recorded.
Implementations§
Source§impl ThreadItem
impl ThreadItem
Sourcepub fn untimed(payload: ThreadItemPayload) -> Self
pub fn untimed(payload: ThreadItemPayload) -> Self
Creates an item with no recorded start or completion time.
Trait Implementations§
Source§impl Clone for ThreadItem
impl Clone for ThreadItem
Source§impl Debug for ThreadItem
impl Debug for ThreadItem
Source§impl<'de> Deserialize<'de> for ThreadItem
impl<'de> Deserialize<'de> for ThreadItem
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
Source§impl From<ThreadItemPayload> for ThreadItem
impl From<ThreadItemPayload> for ThreadItem
Source§fn from(payload: ThreadItemPayload) -> Self
fn from(payload: ThreadItemPayload) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ThreadItem
impl PartialEq for ThreadItem
Source§impl Serialize for ThreadItem
impl Serialize for ThreadItem
impl StructuralPartialEq for ThreadItem
Auto Trait Implementations§
impl Forget for ThreadItem
impl Freeze for ThreadItem
impl Move for ThreadItem
impl RefUnwindSafe for ThreadItem
impl Send for ThreadItem
impl Sync for ThreadItem
impl Unpin for ThreadItem
impl UnsafeUnpin for ThreadItem
impl UnwindSafe for ThreadItem
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