pub struct WorkGraphEvent {
pub seq: Option<i64>,
pub realm_id: String,
pub namespace: WorkNamespace,
pub item_id: Option<WorkItemId>,
pub kind: WorkGraphEventKind,
pub at: DateTime<Utc>,
pub payload: Value,
}Fields§
§seq: Option<i64>§realm_id: String§namespace: WorkNamespace§item_id: Option<WorkItemId>§kind: WorkGraphEventKind§at: DateTime<Utc>§payload: ValueImplementations§
Source§impl WorkGraphEvent
impl WorkGraphEvent
pub fn item( realm_id: String, namespace: WorkNamespace, item_id: WorkItemId, kind: WorkGraphEventKind, at: DateTime<Utc>, payload: Value, ) -> Self
pub fn graph( realm_id: String, namespace: WorkNamespace, kind: WorkGraphEventKind, at: DateTime<Utc>, payload: Value, ) -> Self
Trait Implementations§
Source§impl Clone for WorkGraphEvent
impl Clone for WorkGraphEvent
Source§fn clone(&self) -> WorkGraphEvent
fn clone(&self) -> WorkGraphEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkGraphEvent
impl Debug for WorkGraphEvent
Source§impl<'de> Deserialize<'de> for WorkGraphEvent
impl<'de> Deserialize<'de> for WorkGraphEvent
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 PartialEq for WorkGraphEvent
impl PartialEq for WorkGraphEvent
Source§fn eq(&self, other: &WorkGraphEvent) -> bool
fn eq(&self, other: &WorkGraphEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WorkGraphEvent
impl Serialize for WorkGraphEvent
impl StructuralPartialEq for WorkGraphEvent
Auto Trait Implementations§
impl Freeze for WorkGraphEvent
impl RefUnwindSafe for WorkGraphEvent
impl Send for WorkGraphEvent
impl Sync for WorkGraphEvent
impl Unpin for WorkGraphEvent
impl UnsafeUnpin for WorkGraphEvent
impl UnwindSafe for WorkGraphEvent
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