Struct jsonrpc_macros::Trailing [] [src]

pub struct Trailing<T>(_);

A wrapper type without an implementation of Deserialize which allows a special implementation of Wrap for functions that take a trailing default parameter.

Methods

impl<T: DeserializeOwned> Trailing<T>
[src]

Returns a underlying value if present or provided value.

Returns an underlying value or computes it if not present.

impl<T: Default + DeserializeOwned> Trailing<T>
[src]

Returns an underlying value or the default value.

Trait Implementations

impl<T> Into<Option<T>> for Trailing<T>
[src]

Performs the conversion.