Trait tower_lsp::jsonrpc::FromParams

source ·
pub trait FromParams:
    Sealed
    + Send
    + Sized
    + 'static {
    // Required method
    fn from_params(params: Option<Value>) -> Result<Self>;
}
Expand description

A trait implemented by all JSON-RPC method parameters.

Required Methods§

source

fn from_params(params: Option<Value>) -> Result<Self>

Attempts to deserialize Self from the params value extracted from Request.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromParams for ()

Deserialize non-existent JSON-RPC parameters.

source§

fn from_params(params: Option<Value>) -> Result<Self>

source§

impl<P: DeserializeOwned + Send + 'static> FromParams for (P,)

Deserialize required JSON-RPC parameters.

source§

fn from_params(params: Option<Value>) -> Result<Self>

Implementors§