Skip to main content

Method

Trait Method 

Source
pub trait Method {
    type Request: Serialize + for<'de> Deserialize<'de> + Send + Sync;
    type Response: Serialize + for<'de> Deserialize<'de>;
    type Error: Serialize + for<'de> Deserialize<'de>;

    const NAME: &'static str;
}

Required Associated Constants§

Source

const NAME: &'static str

Required Associated Types§

Source

type Request: Serialize + for<'de> Deserialize<'de> + Send + Sync

Source

type Response: Serialize + for<'de> Deserialize<'de>

Source

type Error: Serialize + for<'de> Deserialize<'de>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Method for GenericMethod

Source§

const NAME: &'static str = "generic_do_not_use"

Source§

type Request = Value

Source§

type Response = Value

Source§

type Error = Value