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§
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl FromParams for ()
impl FromParams for ()
Deserialize non-existent JSON-RPC parameters.
source§impl<P: DeserializeOwned + Send + 'static> FromParams for (P,)
impl<P: DeserializeOwned + Send + 'static> FromParams for (P,)
Deserialize required JSON-RPC parameters.