#[non_exhaustive]pub struct GetTaskPayloadResult(pub Value);Expand description
Response to a tasks/result request.
Per spec, the result structure matches the original request type
(e.g., CallToolResult for tools/call). This is represented as
an open object. The payload is the original request’s result
serialized as a JSON value.
Tuple Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.0: ValueImplementations§
Trait Implementations§
Source§impl Clone for GetTaskPayloadResult
impl Clone for GetTaskPayloadResult
Source§fn clone(&self) -> GetTaskPayloadResult
fn clone(&self) -> GetTaskPayloadResult
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 GetTaskPayloadResult
impl Debug for GetTaskPayloadResult
Source§impl<'de> Deserialize<'de> for GetTaskPayloadResult
impl<'de> Deserialize<'de> for GetTaskPayloadResult
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<GetTaskPayloadResult> for ServerResult
impl From<GetTaskPayloadResult> for ServerResult
Source§fn from(value: GetTaskPayloadResult) -> Self
fn from(value: GetTaskPayloadResult) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for GetTaskPayloadResult
impl JsonSchema for GetTaskPayloadResult
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for GetTaskPayloadResult
impl PartialEq for GetTaskPayloadResult
Source§fn eq(&self, other: &GetTaskPayloadResult) -> bool
fn eq(&self, other: &GetTaskPayloadResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GetTaskPayloadResult
impl Serialize for GetTaskPayloadResult
impl StructuralPartialEq for GetTaskPayloadResult
Auto Trait Implementations§
impl Freeze for GetTaskPayloadResult
impl RefUnwindSafe for GetTaskPayloadResult
impl Send for GetTaskPayloadResult
impl Sync for GetTaskPayloadResult
impl Unpin for GetTaskPayloadResult
impl UnsafeUnpin for GetTaskPayloadResult
impl UnwindSafe for GetTaskPayloadResult
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