pub struct A2AResponse {
pub response_id: Uuid,
pub request_id: Uuid,
pub from: AgentId,
pub to: AgentId,
pub accepted: bool,
pub payload: Value,
pub timestamp: DateTime<Utc>,
}Expand description
A response from a target agent.
Fields§
§response_id: UuidUnique response identifier.
request_id: UuidID of the request this responds to.
from: AgentIdResponding agent’s ID.
to: AgentIdOriginal requesting agent’s ID.
accepted: boolWhether the request was accepted.
payload: ValueResponse payload (result, error, etc.).
timestamp: DateTime<Utc>Timestamp when the response was created.
Implementations§
Trait Implementations§
Source§impl Clone for A2AResponse
impl Clone for A2AResponse
Source§fn clone(&self) -> A2AResponse
fn clone(&self) -> A2AResponse
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 A2AResponse
impl Debug for A2AResponse
Source§impl<'de> Deserialize<'de> for A2AResponse
impl<'de> Deserialize<'de> for A2AResponse
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 A2AResponse
impl RefUnwindSafe for A2AResponse
impl Send for A2AResponse
impl Sync for A2AResponse
impl Unpin for A2AResponse
impl UnsafeUnpin for A2AResponse
impl UnwindSafe for A2AResponse
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