pub struct MemoryGraphEvent {
pub event_type: String,
pub kind: MemoryEventKind,
pub id: String,
pub ts: String,
pub signal: Option<Value>,
pub gene: Option<GeneRef>,
pub outcome: Option<OutcomeRef>,
pub hypothesis: Option<HypothesisRef>,
pub parent: Option<String>,
}Expand description
Memory Graph Event - an entry in the causal memory graph
Fields§
§event_type: StringEvent type
kind: MemoryEventKindKind of event
id: StringUnique ID
ts: StringISO 8601 timestamp
signal: Option<Value>Signal snapshot (conditional)
gene: Option<GeneRef>Gene reference (conditional)
outcome: Option<OutcomeRef>Outcome (conditional)
hypothesis: Option<HypothesisRef>Hypothesis (conditional)
parent: Option<String>Parent event ID for chaining
Implementations§
Source§impl MemoryGraphEvent
impl MemoryGraphEvent
Sourcepub fn hypothesis(
id: String,
hypothesis: HypothesisRef,
parent: Option<String>,
) -> Self
pub fn hypothesis( id: String, hypothesis: HypothesisRef, parent: Option<String>, ) -> Self
Create a new hypothesis event
Sourcepub fn outcome(id: String, outcome: OutcomeRef, parent: Option<String>) -> Self
pub fn outcome(id: String, outcome: OutcomeRef, parent: Option<String>) -> Self
Create an outcome event
Trait Implementations§
Source§impl Clone for MemoryGraphEvent
impl Clone for MemoryGraphEvent
Source§fn clone(&self) -> MemoryGraphEvent
fn clone(&self) -> MemoryGraphEvent
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 MemoryGraphEvent
impl Debug for MemoryGraphEvent
Source§impl<'de> Deserialize<'de> for MemoryGraphEvent
impl<'de> Deserialize<'de> for MemoryGraphEvent
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 MemoryGraphEvent
impl RefUnwindSafe for MemoryGraphEvent
impl Send for MemoryGraphEvent
impl Sync for MemoryGraphEvent
impl Unpin for MemoryGraphEvent
impl UnsafeUnpin for MemoryGraphEvent
impl UnwindSafe for MemoryGraphEvent
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