Skip to main content

DecodeConfig

Trait DecodeConfig 

Source
pub trait DecodeConfig: Sized {
    // Required method
    fn decode(value: &JsValue) -> ApiResult<Self>;
}
Expand description

Decode a config from a JsValue, rejecting unknown keys.

Required Methods§

Source

fn decode(value: &JsValue) -> ApiResult<Self>

Decode value into this config type.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§