Skip to main content

Serialize

Trait Serialize 

Source
pub trait Serialize {
    // Required method
    fn serialize(&self) -> SerializedValue;
}
Expand description

Convert a value to a SerializedValue.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Serialize for &str

Source§

impl Serialize for String

Source§

impl Serialize for bool

Source§

impl Serialize for f32

Source§

impl Serialize for f64

Source§

impl Serialize for i32

Source§

impl Serialize for i64

Source§

impl Serialize for u32

Source§

impl Serialize for u64

Source§

impl<T: Serialize> Serialize for Option<T>

Source§

impl<T: Serialize> Serialize for Vec<T>

Source§

impl<V: Serialize> Serialize for HashMap<String, V>

Implementors§