pub struct UpdateTaskParams {
pub task_id: String,
pub input_responses: HashMap<String, Value>,
pub meta: Option<RequestMeta>,
}Expand description
Parameters for the SEP-2663 tasks/update request.
When a task is in the input_required state the server publishes one or
more requests in the inputRequests field of a tasks/get response;
clients fulfill those requests by posting responses keyed by the request
identifier in inputResponses. The server acknowledges with an empty
result; the post-update task state is observed via a subsequent
tasks/get.
Fields§
§task_id: StringIdentifier of the task being updated.
input_responses: HashMap<String, Value>Responses to outstanding inputRequests previously surfaced by the
server, keyed by the request identifier. Opaque to this crate; clients
supply whatever shape the server expects per its inputRequest
envelope (e.g. an ElicitResult or CreateMessageResult).
meta: Option<RequestMeta>Optional protocol-level metadata.
Trait Implementations§
Source§impl Clone for UpdateTaskParams
impl Clone for UpdateTaskParams
Source§fn clone(&self) -> UpdateTaskParams
fn clone(&self) -> UpdateTaskParams
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 UpdateTaskParams
impl Debug for UpdateTaskParams
Source§impl<'de> Deserialize<'de> for UpdateTaskParams
impl<'de> Deserialize<'de> for UpdateTaskParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateTaskParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateTaskParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UpdateTaskParams
impl Serialize for UpdateTaskParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for UpdateTaskParams
impl RefUnwindSafe for UpdateTaskParams
impl Send for UpdateTaskParams
impl Sync for UpdateTaskParams
impl Unpin for UpdateTaskParams
impl UnsafeUnpin for UpdateTaskParams
impl UnwindSafe for UpdateTaskParams
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