pub struct Message {
pub id: Uuid,
pub team_id: String,
pub task_id: Option<Uuid>,
pub from: String,
pub to: String,
pub kind: MessageKind,
pub parts: Vec<Part>,
pub in_reply_to: Option<Uuid>,
pub state: MsgState,
pub created_at: DateTime<Utc>,
pub consumed_at: Option<DateTime<Utc>>,
}Expand description
An agent-to-agent message in the team mailbox.
Fields§
§id: UuidUnique message identifier.
team_id: StringTeam this message belongs to.
task_id: Option<Uuid>Optional associated task.
from: StringSending agent name.
to: StringReceiving agent name.
kind: MessageKindMessage category.
parts: Vec<Part>Message content parts.
in_reply_to: Option<Uuid>Optional reference to the message being replied to.
state: MsgStateDelivery state.
created_at: DateTime<Utc>When the message was created.
consumed_at: Option<DateTime<Utc>>When the message was consumed, if at all.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
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
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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