pub struct MessageModel {
pub id: String,
pub from_agent: String,
pub to_agent: String,
pub message_type: String,
pub content: Value,
pub priority: MessagePriority,
pub read: bool,
pub created_at: DateTime<Utc>,
pub read_at: Option<DateTime<Utc>>,
}Expand description
Message model for inter-agent communication
Fields§
§id: String§from_agent: String§to_agent: String§message_type: String§content: Value§priority: MessagePriority§read: bool§created_at: DateTime<Utc>§read_at: Option<DateTime<Utc>>Implementations§
Source§impl MessageModel
impl MessageModel
Trait Implementations§
Source§impl Clone for MessageModel
impl Clone for MessageModel
Source§fn clone(&self) -> MessageModel
fn clone(&self) -> MessageModel
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 MessageModel
impl Debug for MessageModel
Source§impl<'de> Deserialize<'de> for MessageModel
impl<'de> Deserialize<'de> for MessageModel
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 MessageModel
impl RefUnwindSafe for MessageModel
impl Send for MessageModel
impl Sync for MessageModel
impl Unpin for MessageModel
impl UnwindSafe for MessageModel
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