pub struct SubscriptionEvent {Show 13 fields
pub event_type: EventType,
pub memory_id: WireMemoryId,
pub session_id: WireSessionId,
pub text: String,
pub kind: MemoryKindWire,
pub salience: f32,
pub timestamp_unix_nanos: u64,
pub lsn: u64,
pub graph_payload: Option<GraphEventPayload>,
pub edge_payload: Option<EdgeEventPayload>,
pub stage_kind: Option<StageKind>,
pub stage_outcome: Option<StageOutcome>,
pub stage_payload: Option<StagePayload>,
}Expand description
SUBSCRIBE_EVENT (0x00B0) — a single server-push event frame.
Fields§
§event_type: EventType§memory_id: WireMemoryId§session_id: WireSessionId§text: String§kind: MemoryKindWire§salience: f32§timestamp_unix_nanos: u64§lsn: u64§graph_payload: Option<GraphEventPayload>None for cognitive events; Some(_) for typed-graph events.
edge_payload: Option<EdgeEventPayload>Some(_) for EdgeAdded / EdgeRemoved / EdgeSuperseded.
stage_kind: Option<StageKind>Some(_) when event_type == StageCompleted.
stage_outcome: Option<StageOutcome>§stage_payload: Option<StagePayload>Trait Implementations§
Source§impl Clone for SubscriptionEvent
impl Clone for SubscriptionEvent
Source§impl Debug for SubscriptionEvent
impl Debug for SubscriptionEvent
Source§impl<'de> Deserialize<'de> for SubscriptionEvent
impl<'de> Deserialize<'de> for SubscriptionEvent
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 SubscriptionEvent
impl PartialEq for SubscriptionEvent
Source§impl Serialize for SubscriptionEvent
impl Serialize for SubscriptionEvent
impl StructuralPartialEq for SubscriptionEvent
Auto Trait Implementations§
impl Freeze for SubscriptionEvent
impl RefUnwindSafe for SubscriptionEvent
impl Send for SubscriptionEvent
impl Sync for SubscriptionEvent
impl Unpin for SubscriptionEvent
impl UnsafeUnpin for SubscriptionEvent
impl UnwindSafe for SubscriptionEvent
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