Skip to main content

ToJson

Trait ToJson 

Source
pub trait ToJson {
    // Required method
    fn json(self, number_policy: &JsonNumberPolicy) -> Value;
}

Required Methods§

Source

fn json(self, number_policy: &JsonNumberPolicy) -> Value

Transforms this value to a JSON value.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§