pub struct CausalEvent {
pub id: EventId,
pub event_type: CausalEventType,
pub description: String,
pub timestamp: i64,
pub causes: Vec<EventId>,
pub effects: Vec<EventId>,
pub metadata: HashMap<String, String>,
}Expand description
Causal event in the causality graph.
Fields§
§id: EventId§event_type: CausalEventType§description: String§timestamp: i64§causes: Vec<EventId>§effects: Vec<EventId>§metadata: HashMap<String, String>Trait Implementations§
Source§impl Clone for CausalEvent
impl Clone for CausalEvent
Source§fn clone(&self) -> CausalEvent
fn clone(&self) -> CausalEvent
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 moreSource§impl Debug for CausalEvent
impl Debug for CausalEvent
Source§impl<'de> Deserialize<'de> for CausalEvent
impl<'de> Deserialize<'de> for CausalEvent
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
Auto Trait Implementations§
impl Freeze for CausalEvent
impl RefUnwindSafe for CausalEvent
impl Send for CausalEvent
impl Sync for CausalEvent
impl Unpin for CausalEvent
impl UnsafeUnpin for CausalEvent
impl UnwindSafe for CausalEvent
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