pub enum ChannelState {
Submitted,
Working,
InputRequired,
Completed,
Failed,
Canceled,
Rejected,
Stale,
}Expand description
A2A v0.3 lifecycle vocabulary, serialized on the wire as kebab-case
(input-required, canceled, etc.).
§Spelling note
Canceled (→ "canceled") intentionally follows the A2A v0.3 spec spelling
and is a DISTINCT type from crate::a2a::TaskState, which spells the
equivalent variant Cancelled (two l’s). The two enums are bridged by an
explicit boundary mapping — not string equality — so the spelling difference
is deliberate, not a bug.
Variants§
Submitted
Working
InputRequired
Completed
Failed
Canceled
Rejected
Stale
MUR extension (not in A2A v0.3): the channel has had no activity for an extended period and was system-marked stale.
Trait Implementations§
Source§impl Clone for ChannelState
impl Clone for ChannelState
Source§fn clone(&self) -> ChannelState
fn clone(&self) -> ChannelState
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 moreimpl Copy for ChannelState
Source§impl Debug for ChannelState
impl Debug for ChannelState
Source§impl<'de> Deserialize<'de> for ChannelState
impl<'de> Deserialize<'de> for ChannelState
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
impl Eq for ChannelState
Source§impl PartialEq for ChannelState
impl PartialEq for ChannelState
Source§fn eq(&self, other: &ChannelState) -> bool
fn eq(&self, other: &ChannelState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChannelState
impl Serialize for ChannelState
impl StructuralPartialEq for ChannelState
Auto Trait Implementations§
impl Freeze for ChannelState
impl RefUnwindSafe for ChannelState
impl Send for ChannelState
impl Sync for ChannelState
impl Unpin for ChannelState
impl UnsafeUnpin for ChannelState
impl UnwindSafe for ChannelState
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.