pub struct ActivityEvent {
pub id: i64,
pub ts: i64,
pub event_type: String,
pub agent_id: String,
pub target_id: Option<String>,
pub score: Option<i64>,
pub name: Option<String>,
pub conversation_id: Option<String>,
}Expand description
Activity event broadcast on the aggregator’s GET /ws/activity stream.
Fields§
§id: i64§ts: i64§event_type: String"JOIN" | "FEEDBACK" | "DISPUTE" | "VERDICT" | "REJECT" | "DELIVER"
agent_id: StringPrimary agent_id (hex).
target_id: Option<String>Secondary agent_id for bilateral events (hex).
score: Option<i64>§name: Option<String>§conversation_id: Option<String>Trait Implementations§
Source§impl Clone for ActivityEvent
impl Clone for ActivityEvent
Source§fn clone(&self) -> ActivityEvent
fn clone(&self) -> ActivityEvent
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 ActivityEvent
impl Debug for ActivityEvent
Source§impl<'de> Deserialize<'de> for ActivityEvent
impl<'de> Deserialize<'de> for ActivityEvent
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 ActivityEvent
impl RefUnwindSafe for ActivityEvent
impl Send for ActivityEvent
impl Sync for ActivityEvent
impl Unpin for ActivityEvent
impl UnsafeUnpin for ActivityEvent
impl UnwindSafe for ActivityEvent
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