pub struct A2ARequest {
pub request_id: Uuid,
pub from: AgentId,
pub to: AgentId,
pub message: A2AMessage,
pub timestamp: DateTime<Utc>,
}Expand description
A request sent by one agent to another via A2A.
Fields§
§request_id: UuidUnique request identifier.
from: AgentIdSending agent’s ID.
to: AgentIdReceiving agent’s ID.
message: A2AMessageThe message being sent.
timestamp: DateTime<Utc>Timestamp when the request was created.
Implementations§
Source§impl A2ARequest
impl A2ARequest
Sourcepub fn new(from: AgentId, to: AgentId, message: A2AMessage) -> Self
pub fn new(from: AgentId, to: AgentId, message: A2AMessage) -> Self
Creates a new A2A request.
Trait Implementations§
Source§impl Clone for A2ARequest
impl Clone for A2ARequest
Source§fn clone(&self) -> A2ARequest
fn clone(&self) -> A2ARequest
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 A2ARequest
impl Debug for A2ARequest
Source§impl<'de> Deserialize<'de> for A2ARequest
impl<'de> Deserialize<'de> for A2ARequest
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 A2ARequest
impl RefUnwindSafe for A2ARequest
impl Send for A2ARequest
impl Sync for A2ARequest
impl Unpin for A2ARequest
impl UnsafeUnpin for A2ARequest
impl UnwindSafe for A2ARequest
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