pub enum A2AEvent {
TaskSubmitted {
timestamp: DateTime<Utc>,
payload: TaskSubmittedPayload,
},
TaskStatusUpdate {
timestamp: DateTime<Utc>,
payload: TaskStatusUpdatePayload,
},
ArtifactCreated {
timestamp: DateTime<Utc>,
payload: Box<ArtifactCreatedPayload>,
},
ArtifactUpdated {
timestamp: DateTime<Utc>,
payload: ArtifactUpdatedPayload,
},
AgentMessage {
timestamp: DateTime<Utc>,
payload: AgentMessagePayload,
},
InputRequired {
timestamp: DateTime<Utc>,
payload: InputRequiredPayload,
},
AuthRequired {
timestamp: DateTime<Utc>,
payload: AuthRequiredPayload,
},
JsonRpcResponse {
timestamp: DateTime<Utc>,
payload: JsonRpcResponsePayload,
},
JsonRpcError {
timestamp: DateTime<Utc>,
payload: JsonRpcErrorPayload,
},
}Variants§
TaskSubmitted
TaskStatusUpdate
ArtifactCreated
ArtifactUpdated
AgentMessage
InputRequired
AuthRequired
JsonRpcResponse
JsonRpcError
Implementations§
Source§impl A2AEvent
impl A2AEvent
pub const fn event_type(&self) -> A2AEventType
pub const fn timestamp(&self) -> DateTime<Utc>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for A2AEvent
impl<'de> Deserialize<'de> for A2AEvent
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
Source§impl From<A2AEvent> for ContextEvent
impl From<A2AEvent> for ContextEvent
Auto Trait Implementations§
impl Freeze for A2AEvent
impl RefUnwindSafe for A2AEvent
impl Send for A2AEvent
impl Sync for A2AEvent
impl Unpin for A2AEvent
impl UnsafeUnpin for A2AEvent
impl UnwindSafe for A2AEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more