Skip to main content

EncodeConfig

Trait EncodeConfig 

Source
pub trait EncodeConfig {
    // Required method
    fn encode(&self) -> ApiResult<JsValue>;
}
Expand description

Encode a config to a JsValue.

Required Methods§

Source

fn encode(&self) -> ApiResult<JsValue>

Encode this config to a JsValue in a supported type.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§