Skip to main content

Method

Trait Method 

Source
pub trait Method {
    type Params: Serialize;
    type Result: DeserializeOwned;

    const NAME: &'static str;
}
Expand description

Associates one provider method with its wire parameter and result types so callers cannot accidentally deserialize a method into the wrong response shape.

Required Associated Constants§

Source

const NAME: &'static str

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Method for CheckDeletable

Source§

const NAME: &'static str = CHECK_DELETABLE

Source§

type Params = AddressParams

Source§

type Result = EmptyResult

Source§

impl Method for CheckWritable

Source§

const NAME: &'static str = CHECK_WRITABLE

Source§

type Params = AddressParams

Source§

type Result = EmptyResult

Source§

impl Method for Clear

Source§

impl Method for Delete

Source§

impl Method for DescribeWriteTarget

Source§

const NAME: &'static str = DESCRIBE_WRITE_TARGET

Source§

type Params = AddressParams

Source§

type Result = DescribeWriteTargetResult

Source§

impl Method for Exists

Source§

impl Method for Get

Source§

impl Method for GetMany

Source§

impl Method for Reflect

Source§

impl Method for ResolveAddress

Source§

const NAME: &'static str = RESOLVE_ADDRESS

Source§

type Params = AddressParams

Source§

type Result = ResolveAddressResult

Source§

impl Method for Set

Source§

impl Method for SetExpiring

Source§

const NAME: &'static str = SET_EXPIRING

Source§

type Params = SetExpiringParams

Source§

type Result = StoredResult