#[non_exhaustive]pub enum A2aSendMessageResponse {
Task(A2aTask),
Message(A2aMessage),
}Expand description
Unary response to a send operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Task(A2aTask)
A durable task was accepted or updated.
Message(A2aMessage)
The operation completed directly with a message.
Implementations§
Source§impl A2aSendMessageResponse
impl A2aSendMessageResponse
Sourcepub fn to_json(&self) -> Result<Value, A2aContractError>
pub fn to_json(&self) -> Result<Value, A2aContractError>
Returns the standard field-presence JSON representation.
Sourcepub fn from_json(value: Value) -> Result<Self, A2aContractError>
pub fn from_json(value: Value) -> Result<Self, A2aContractError>
Parses and bounds a standard field-presence JSON response.
Trait Implementations§
Source§impl Clone for A2aSendMessageResponse
impl Clone for A2aSendMessageResponse
Source§impl Debug for A2aSendMessageResponse
impl Debug for A2aSendMessageResponse
Source§impl PartialEq for A2aSendMessageResponse
impl PartialEq for A2aSendMessageResponse
impl StructuralPartialEq for A2aSendMessageResponse
Auto Trait Implementations§
impl Forget for A2aSendMessageResponse
impl Freeze for A2aSendMessageResponse
impl Move for A2aSendMessageResponse
impl RefUnwindSafe for A2aSendMessageResponse
impl Send for A2aSendMessageResponse
impl Sync for A2aSendMessageResponse
impl Unpin for A2aSendMessageResponse
impl UnsafeUnpin for A2aSendMessageResponse
impl UnwindSafe for A2aSendMessageResponse
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request