pub struct InboxMessage {
pub id: MsgId,
pub from: AgentRef,
pub kind: InboxKind,
pub body: Value,
pub created_at: DateTime<Utc>,
pub correlation_id: Option<MsgId>,
}Expand description
A message addressed to an actor’s mailbox. body is the opaque chat payload (domain Message).
Fields§
§id: MsgId§from: AgentRef§kind: InboxKind§body: Value§created_at: DateTime<Utc>§correlation_id: Option<MsgId>For an InboxKind::Reply, the MsgId of the InboxKind::Ask it
answers — lets a parent match a reply to the ask it is awaiting. None
for unsolicited messages (Task/Ask/Handoff).
Trait Implementations§
Source§impl Clone for InboxMessage
impl Clone for InboxMessage
Source§fn clone(&self) -> InboxMessage
fn clone(&self) -> InboxMessage
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 InboxMessage
impl Debug for InboxMessage
Source§impl<'de> Deserialize<'de> for InboxMessage
impl<'de> Deserialize<'de> for InboxMessage
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 InboxMessage
impl PartialEq for InboxMessage
Source§fn eq(&self, other: &InboxMessage) -> bool
fn eq(&self, other: &InboxMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InboxMessage
impl Serialize for InboxMessage
impl StructuralPartialEq for InboxMessage
Auto Trait Implementations§
impl Freeze for InboxMessage
impl RefUnwindSafe for InboxMessage
impl Send for InboxMessage
impl Sync for InboxMessage
impl Unpin for InboxMessage
impl UnsafeUnpin for InboxMessage
impl UnwindSafe for InboxMessage
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