pub type GenericResult = Result;Expand description
Alias to avoid conflicts with Rust’s standard Result type.
Aliased Type§
pub struct GenericResult {
pub meta: Option<Map<String, Value>>,
pub extra: Option<Map<String, Value>>,
}Fields§
§meta: Option<Map<String, Value>>See General fields: _meta for notes on _meta usage.
extra: Option<Map<String, Value>>Trait Implementations§
Source§impl From<CallToolResult> for GenericResult
impl From<CallToolResult> for GenericResult
Source§fn from(value: CallToolResult) -> Self
fn from(value: CallToolResult) -> Self
Converts to this type from the input type.
Source§impl From<CancelTaskResult> for GenericResult
impl From<CancelTaskResult> for GenericResult
Source§fn from(value: CancelTaskResult) -> Self
fn from(value: CancelTaskResult) -> Self
Converts to this type from the input type.
Source§impl From<CompleteResult> for GenericResult
impl From<CompleteResult> for GenericResult
Source§fn from(value: CompleteResult) -> Self
fn from(value: CompleteResult) -> Self
Converts to this type from the input type.
Source§impl From<GetPromptResult> for GenericResult
impl From<GetPromptResult> for GenericResult
Source§fn from(value: GetPromptResult) -> Self
fn from(value: GetPromptResult) -> Self
Converts to this type from the input type.
Source§impl From<GetTaskPayloadResult> for GenericResult
impl From<GetTaskPayloadResult> for GenericResult
Source§fn from(value: GetTaskPayloadResult) -> Self
fn from(value: GetTaskPayloadResult) -> Self
Converts to this type from the input type.
Source§impl From<GetTaskResult> for GenericResult
impl From<GetTaskResult> for GenericResult
Source§fn from(value: GetTaskResult) -> Self
fn from(value: GetTaskResult) -> Self
Converts to this type from the input type.
Source§impl From<InitializeResult> for GenericResult
impl From<InitializeResult> for GenericResult
Source§fn from(value: InitializeResult) -> Self
fn from(value: InitializeResult) -> Self
Converts to this type from the input type.
Source§impl From<ListPromptsResult> for GenericResult
impl From<ListPromptsResult> for GenericResult
Source§fn from(value: ListPromptsResult) -> Self
fn from(value: ListPromptsResult) -> Self
Converts to this type from the input type.
Source§impl From<ListResourceTemplatesResult> for GenericResult
impl From<ListResourceTemplatesResult> for GenericResult
Source§fn from(value: ListResourceTemplatesResult) -> Self
fn from(value: ListResourceTemplatesResult) -> Self
Converts to this type from the input type.
Source§impl From<ListResourcesResult> for GenericResult
impl From<ListResourcesResult> for GenericResult
Source§fn from(value: ListResourcesResult) -> Self
fn from(value: ListResourcesResult) -> Self
Converts to this type from the input type.
Source§impl From<ListTasksResult> for GenericResult
impl From<ListTasksResult> for GenericResult
Source§fn from(value: ListTasksResult) -> Self
fn from(value: ListTasksResult) -> Self
Converts to this type from the input type.
Source§impl From<ListToolsResult> for GenericResult
impl From<ListToolsResult> for GenericResult
Source§fn from(value: ListToolsResult) -> Self
fn from(value: ListToolsResult) -> Self
Converts to this type from the input type.
Source§impl From<ReadResourceResult> for GenericResult
impl From<ReadResourceResult> for GenericResult
Source§fn from(value: ReadResourceResult) -> Self
fn from(value: ReadResourceResult) -> Self
Converts to this type from the input type.