pub struct AgentCommunication {
pub from_agent: String,
pub to_agent: Option<String>,
pub message: String,
pub timestamp: DateTime<Utc>,
}Expand description
Communication between agents in a multi-agent context
Fields§
§from_agent: StringID of the agent sending the message
to_agent: Option<String>ID of the agent receiving the message (None for broadcast)
message: StringThe communication message
timestamp: DateTime<Utc>When this communication occurred
Trait Implementations§
Source§impl Clone for AgentCommunication
impl Clone for AgentCommunication
Source§fn clone(&self) -> AgentCommunication
fn clone(&self) -> AgentCommunication
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 AgentCommunication
impl Debug for AgentCommunication
Source§impl<'de> Deserialize<'de> for AgentCommunication
impl<'de> Deserialize<'de> for AgentCommunication
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 AgentCommunication
impl RefUnwindSafe for AgentCommunication
impl Send for AgentCommunication
impl Sync for AgentCommunication
impl Unpin for AgentCommunication
impl UnwindSafe for AgentCommunication
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