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