#[non_exhaustive]pub struct TaskStatus { /* private fields */ }Expand description
Ergonomic wrapper over proto TaskStatus.
Implementations§
Source§impl TaskStatus
impl TaskStatus
pub fn new(state: TaskState) -> Self
pub fn with_message(self, message: Message) -> Self
pub fn state(&self) -> Result<TaskState, A2aTypeError>
pub fn as_proto(&self) -> &TaskStatus
pub fn into_proto(self) -> TaskStatus
Trait Implementations§
Source§impl Clone for TaskStatus
impl Clone for TaskStatus
Source§fn clone(&self) -> TaskStatus
fn clone(&self) -> TaskStatus
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 moreSource§impl Debug for TaskStatus
impl Debug for TaskStatus
Source§impl<'de> Deserialize<'de> for TaskStatus
impl<'de> Deserialize<'de> for TaskStatus
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<TaskStatus> for TaskStatus
impl From<TaskStatus> for TaskStatus
Source§fn from(status: TaskStatus) -> Self
fn from(status: TaskStatus) -> Self
Converts to this type from the input type.
Source§impl Serialize for TaskStatus
impl Serialize for TaskStatus
Source§impl TryFrom<TaskStatus> for TaskStatus
impl TryFrom<TaskStatus> for TaskStatus
Source§type Error = A2aTypeError
type Error = A2aTypeError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for TaskStatus
impl RefUnwindSafe for TaskStatus
impl Send for TaskStatus
impl Sync for TaskStatus
impl Unpin for TaskStatus
impl UnsafeUnpin for TaskStatus
impl UnwindSafe for TaskStatus
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