Skip to main content

ReplyExtras

Trait ReplyExtras 

Source
pub trait ReplyExtras: Sized {
    // Required method
    fn from_reply(api: &Api, raw: &Value) -> Result<Self, Error>;
}
Expand description

A typed view of a reply’s provider document.

Required Methods§

Source

fn from_reply(api: &Api, raw: &Value) -> Result<Self, Error>

Read the view from raw, the reply’s document on api.

§Errors

When raw does not hold the view’s shape.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§