EasyJsonSerialize

Trait EasyJsonSerialize 

Source
pub trait EasyJsonSerialize {
    // Required method
    fn save<P: AsRef<Path>, T: Serialize>(
        path: P,
        serializable_type: &T,
        indentation_width: usize,
    ) -> Result<File, Box<dyn Error>>;
}

Required Methods§

Source

fn save<P: AsRef<Path>, T: Serialize>( path: P, serializable_type: &T, indentation_width: usize, ) -> Result<File, Box<dyn Error>>

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.

Implementations on Foreign Types§

Source§

impl EasyJsonSerialize for File

Source§

fn save<P: AsRef<Path>, T: Serialize>( path: P, serializable_type: &T, indentation_width: usize, ) -> Result<File, Box<dyn Error>>

Implementors§