ArriModel

Trait ArriModel 

Source
pub trait ArriModel {
    // Required methods
    fn new() -> Self;
    fn from_json(input: Value) -> Self;
    fn from_json_string(input: String) -> Self;
    fn to_json_string(&self) -> String;
    fn to_query_params_string(&self) -> String;
}

Required Methods§

Source

fn new() -> Self

Source

fn from_json(input: Value) -> Self

Source

fn from_json_string(input: String) -> Self

Source

fn to_json_string(&self) -> String

Source

fn to_query_params_string(&self) -> String

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§