pub struct A2aTaskStatus { /* private fields */ }Expand description
Status snapshot for an A2A task.
Implementations§
Source§impl A2aTaskStatus
impl A2aTaskStatus
Sourcepub fn new(
state: A2aTaskState,
message: Option<A2aMessage>,
timestamp: Option<DateTime<Utc>>,
) -> Result<Self, A2aContractError>
pub fn new( state: A2aTaskState, message: Option<A2aMessage>, timestamp: Option<DateTime<Utc>>, ) -> Result<Self, A2aContractError>
Constructs a status snapshot.
Sourcepub fn state(&self) -> A2aTaskState
pub fn state(&self) -> A2aTaskState
Returns the A2A state.
Sourcepub fn message(&self) -> Option<A2aMessage>
pub fn message(&self) -> Option<A2aMessage>
Clones the optional status message.
Trait Implementations§
Source§impl Clone for A2aTaskStatus
impl Clone for A2aTaskStatus
Source§impl Debug for A2aTaskStatus
impl Debug for A2aTaskStatus
Source§impl PartialEq for A2aTaskStatus
impl PartialEq for A2aTaskStatus
impl StructuralPartialEq for A2aTaskStatus
Auto Trait Implementations§
impl Forget for A2aTaskStatus
impl Freeze for A2aTaskStatus
impl Move for A2aTaskStatus
impl RefUnwindSafe for A2aTaskStatus
impl Send for A2aTaskStatus
impl Sync for A2aTaskStatus
impl Unpin for A2aTaskStatus
impl UnsafeUnpin for A2aTaskStatus
impl UnwindSafe for A2aTaskStatus
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