pub enum A2ARequestPayload {
SendMessage {
params: MessageSendParams,
},
SendStreamingMessage {
params: MessageSendParams,
},
GetTask {
params: TaskQueryParams,
},
CancelTask {
params: TaskIdParams,
},
SetTaskPushNotificationConfig {
params: TaskPushNotificationConfig,
},
GetTaskPushNotificationConfig {
params: GetTaskPushNotificationConfigParams,
},
TaskResubscription {
params: TaskIdParams,
},
ListTaskPushNotificationConfig {
params: ListTaskPushNotificationConfigParams,
},
DeleteTaskPushNotificationConfig {
params: DeleteTaskPushNotificationConfigParams,
},
GetAuthenticatedExtendedCard,
}Expand description
A discriminated union of all possible A2A request payloads, tagged by the method field.
Variants§
SendMessage
Payload for the message/send method.
Fields
§
params: MessageSendParamsSendStreamingMessage
Payload for the message/stream method.
Fields
§
params: MessageSendParamsGetTask
Payload for the tasks/get method.
Fields
§
params: TaskQueryParamsCancelTask
Payload for the tasks/cancel method.
Fields
§
params: TaskIdParamsSetTaskPushNotificationConfig
Payload for the tasks/pushNotificationConfig/set method.
Fields
§
params: TaskPushNotificationConfigGetTaskPushNotificationConfig
Payload for the tasks/pushNotificationConfig/get method.
Fields
TaskResubscription
Payload for the tasks/resubscribe method.
Fields
§
params: TaskIdParamsListTaskPushNotificationConfig
Payload for the tasks/pushNotificationConfig/list method.
Fields
DeleteTaskPushNotificationConfig
Payload for the tasks/pushNotificationConfig/delete method.
Fields
GetAuthenticatedExtendedCard
Payload for the agent/getAuthenticatedExtendedCard method.
Trait Implementations§
Source§impl Clone for A2ARequestPayload
impl Clone for A2ARequestPayload
Source§fn clone(&self) -> A2ARequestPayload
fn clone(&self) -> A2ARequestPayload
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 A2ARequestPayload
impl Debug for A2ARequestPayload
Source§impl<'de> Deserialize<'de> for A2ARequestPayload
impl<'de> Deserialize<'de> for A2ARequestPayload
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 A2ARequestPayload
impl RefUnwindSafe for A2ARequestPayload
impl Send for A2ARequestPayload
impl Sync for A2ARequestPayload
impl Unpin for A2ARequestPayload
impl UnwindSafe for A2ARequestPayload
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