pub enum RequestFromClient {
ClientRequest(ClientRequest),
CustomRequest(Value),
}
Expand description
To determine standard and custom request from the client side Custom requests are of type serde_json::Value and can be deserialized into any custom type.
Variants§
ClientRequest(ClientRequest)
CustomRequest(Value)
Implementations§
Trait Implementations§
Source§impl Clone for RequestFromClient
impl Clone for RequestFromClient
Source§fn clone(&self) -> RequestFromClient
fn clone(&self) -> RequestFromClient
Returns a copy of the value. Read more
1.0.0 · 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 RequestFromClient
impl Debug for RequestFromClient
Source§impl<'de> Deserialize<'de> for RequestFromClient
impl<'de> Deserialize<'de> for RequestFromClient
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<CallToolRequest> for RequestFromClient
impl From<CallToolRequest> for RequestFromClient
Source§fn from(value: CallToolRequest) -> Self
fn from(value: CallToolRequest) -> Self
Converts to this type from the input type.
Source§impl From<ClientRequest> for RequestFromClient
impl From<ClientRequest> for RequestFromClient
Source§fn from(value: ClientRequest) -> Self
fn from(value: ClientRequest) -> Self
Converts to this type from the input type.
Source§impl From<CompleteRequest> for RequestFromClient
impl From<CompleteRequest> for RequestFromClient
Source§fn from(value: CompleteRequest) -> Self
fn from(value: CompleteRequest) -> Self
Converts to this type from the input type.
Source§impl From<GetPromptRequest> for RequestFromClient
impl From<GetPromptRequest> for RequestFromClient
Source§fn from(value: GetPromptRequest) -> Self
fn from(value: GetPromptRequest) -> Self
Converts to this type from the input type.
Source§impl From<InitializeRequest> for RequestFromClient
impl From<InitializeRequest> for RequestFromClient
Source§fn from(value: InitializeRequest) -> Self
fn from(value: InitializeRequest) -> Self
Converts to this type from the input type.
Source§impl From<ListPromptsRequest> for RequestFromClient
impl From<ListPromptsRequest> for RequestFromClient
Source§fn from(value: ListPromptsRequest) -> Self
fn from(value: ListPromptsRequest) -> Self
Converts to this type from the input type.
Source§impl From<ListResourceTemplatesRequest> for RequestFromClient
impl From<ListResourceTemplatesRequest> for RequestFromClient
Source§fn from(value: ListResourceTemplatesRequest) -> Self
fn from(value: ListResourceTemplatesRequest) -> Self
Converts to this type from the input type.
Source§impl From<ListResourcesRequest> for RequestFromClient
impl From<ListResourcesRequest> for RequestFromClient
Source§fn from(value: ListResourcesRequest) -> Self
fn from(value: ListResourcesRequest) -> Self
Converts to this type from the input type.
Source§impl From<ListToolsRequest> for RequestFromClient
impl From<ListToolsRequest> for RequestFromClient
Source§fn from(value: ListToolsRequest) -> Self
fn from(value: ListToolsRequest) -> Self
Converts to this type from the input type.
Source§impl From<PingRequest> for RequestFromClient
impl From<PingRequest> for RequestFromClient
Source§fn from(value: PingRequest) -> Self
fn from(value: PingRequest) -> Self
Converts to this type from the input type.
Source§impl From<ReadResourceRequest> for RequestFromClient
impl From<ReadResourceRequest> for RequestFromClient
Source§fn from(value: ReadResourceRequest) -> Self
fn from(value: ReadResourceRequest) -> Self
Converts to this type from the input type.
Source§impl From<RequestFromClient> for MessageFromClient
impl From<RequestFromClient> for MessageFromClient
Source§fn from(value: RequestFromClient) -> Self
fn from(value: RequestFromClient) -> Self
Converts to this type from the input type.
Source§impl From<SetLevelRequest> for RequestFromClient
impl From<SetLevelRequest> for RequestFromClient
Source§fn from(value: SetLevelRequest) -> Self
fn from(value: SetLevelRequest) -> Self
Converts to this type from the input type.
Source§impl From<SubscribeRequest> for RequestFromClient
impl From<SubscribeRequest> for RequestFromClient
Source§fn from(value: SubscribeRequest) -> Self
fn from(value: SubscribeRequest) -> Self
Converts to this type from the input type.
Source§impl From<UnsubscribeRequest> for RequestFromClient
impl From<UnsubscribeRequest> for RequestFromClient
Source§fn from(value: UnsubscribeRequest) -> Self
fn from(value: UnsubscribeRequest) -> Self
Converts to this type from the input type.
Source§impl From<Value> for RequestFromClient
impl From<Value> for RequestFromClient
Source§impl Serialize for RequestFromClient
impl Serialize for RequestFromClient
Source§impl TryFrom<RequestFromClient> for CallToolRequest
impl TryFrom<RequestFromClient> for CallToolRequest
Source§type Error = JsonrpcErrorError
type Error = JsonrpcErrorError
The type returned in the event of a conversion error.
Source§impl TryFrom<RequestFromClient> for ClientRequest
impl TryFrom<RequestFromClient> for ClientRequest
Source§type Error = JsonrpcErrorError
type Error = JsonrpcErrorError
The type returned in the event of a conversion error.
Source§impl TryFrom<RequestFromClient> for CompleteRequest
impl TryFrom<RequestFromClient> for CompleteRequest
Source§type Error = JsonrpcErrorError
type Error = JsonrpcErrorError
The type returned in the event of a conversion error.
Source§impl TryFrom<RequestFromClient> for GetPromptRequest
impl TryFrom<RequestFromClient> for GetPromptRequest
Source§type Error = JsonrpcErrorError
type Error = JsonrpcErrorError
The type returned in the event of a conversion error.
Source§impl TryFrom<RequestFromClient> for InitializeRequest
impl TryFrom<RequestFromClient> for InitializeRequest
Source§type Error = JsonrpcErrorError
type Error = JsonrpcErrorError
The type returned in the event of a conversion error.
Source§impl TryFrom<RequestFromClient> for ListPromptsRequest
impl TryFrom<RequestFromClient> for ListPromptsRequest
Source§type Error = JsonrpcErrorError
type Error = JsonrpcErrorError
The type returned in the event of a conversion error.
Source§impl TryFrom<RequestFromClient> for ListResourceTemplatesRequest
impl TryFrom<RequestFromClient> for ListResourceTemplatesRequest
Source§type Error = JsonrpcErrorError
type Error = JsonrpcErrorError
The type returned in the event of a conversion error.
Source§impl TryFrom<RequestFromClient> for ListResourcesRequest
impl TryFrom<RequestFromClient> for ListResourcesRequest
Source§type Error = JsonrpcErrorError
type Error = JsonrpcErrorError
The type returned in the event of a conversion error.
Source§impl TryFrom<RequestFromClient> for ListToolsRequest
impl TryFrom<RequestFromClient> for ListToolsRequest
Source§type Error = JsonrpcErrorError
type Error = JsonrpcErrorError
The type returned in the event of a conversion error.
Source§impl TryFrom<RequestFromClient> for PingRequest
impl TryFrom<RequestFromClient> for PingRequest
Source§type Error = JsonrpcErrorError
type Error = JsonrpcErrorError
The type returned in the event of a conversion error.
Source§impl TryFrom<RequestFromClient> for ReadResourceRequest
impl TryFrom<RequestFromClient> for ReadResourceRequest
Source§type Error = JsonrpcErrorError
type Error = JsonrpcErrorError
The type returned in the event of a conversion error.
Source§impl TryFrom<RequestFromClient> for SetLevelRequest
impl TryFrom<RequestFromClient> for SetLevelRequest
Source§type Error = JsonrpcErrorError
type Error = JsonrpcErrorError
The type returned in the event of a conversion error.
Source§impl TryFrom<RequestFromClient> for SubscribeRequest
impl TryFrom<RequestFromClient> for SubscribeRequest
Source§type Error = JsonrpcErrorError
type Error = JsonrpcErrorError
The type returned in the event of a conversion error.
Source§impl TryFrom<RequestFromClient> for UnsubscribeRequest
impl TryFrom<RequestFromClient> for UnsubscribeRequest
Source§type Error = JsonrpcErrorError
type Error = JsonrpcErrorError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for RequestFromClient
impl RefUnwindSafe for RequestFromClient
impl Send for RequestFromClient
impl Sync for RequestFromClient
impl Unpin for RequestFromClient
impl UnwindSafe for RequestFromClient
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