GenericResult

Type Alias GenericResult 

Source
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

Source§

fn from(value: CallToolResult) -> Self

Converts to this type from the input type.
Source§

impl From<CancelTaskResult> for GenericResult

Source§

fn from(value: CancelTaskResult) -> Self

Converts to this type from the input type.
Source§

impl From<CompleteResult> for GenericResult

Source§

fn from(value: CompleteResult) -> Self

Converts to this type from the input type.
Source§

impl From<GetPromptResult> for GenericResult

Source§

fn from(value: GetPromptResult) -> Self

Converts to this type from the input type.
Source§

impl From<GetTaskPayloadResult> for GenericResult

Source§

fn from(value: GetTaskPayloadResult) -> Self

Converts to this type from the input type.
Source§

impl From<GetTaskResult> for GenericResult

Source§

fn from(value: GetTaskResult) -> Self

Converts to this type from the input type.
Source§

impl From<InitializeResult> for GenericResult

Source§

fn from(value: InitializeResult) -> Self

Converts to this type from the input type.
Source§

impl From<ListPromptsResult> for GenericResult

Source§

fn from(value: ListPromptsResult) -> Self

Converts to this type from the input type.
Source§

impl From<ListResourceTemplatesResult> for GenericResult

Source§

fn from(value: ListResourceTemplatesResult) -> Self

Converts to this type from the input type.
Source§

impl From<ListResourcesResult> for GenericResult

Source§

fn from(value: ListResourcesResult) -> Self

Converts to this type from the input type.
Source§

impl From<ListTasksResult> for GenericResult

Source§

fn from(value: ListTasksResult) -> Self

Converts to this type from the input type.
Source§

impl From<ListToolsResult> for GenericResult

Source§

fn from(value: ListToolsResult) -> Self

Converts to this type from the input type.
Source§

impl From<ReadResourceResult> for GenericResult

Source§

fn from(value: ReadResourceResult) -> Self

Converts to this type from the input type.
Source§

impl TryFrom<ClientResult> for GenericResult

Source§

type Error = RpcError

The type returned in the event of a conversion error.
Source§

fn try_from(value: ResultFromClient) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ServerResult> for GenericResult

Source§

type Error = RpcError

The type returned in the event of a conversion error.
Source§

fn try_from(value: ResultFromServer) -> Result<Self, Self::Error>

Performs the conversion.