Trait from_as::AsFile

source ·
pub trait AsFile {
    type Error: Error;

    // Required methods
    fn as_file<P>(&self, path: P) -> Result<(), Self::Error>
       where P: AsRef<Path>,
             Self: Serialize;
    fn as_file_pretty<P>(&self, path: P) -> Result<(), Self::Error>
       where P: AsRef<Path>,
             Self: Serialize;
}

Required Associated Types§

Required Methods§

source

fn as_file<P>(&self, path: P) -> Result<(), Self::Error>where P: AsRef<Path>, Self: Serialize,

source

fn as_file_pretty<P>(&self, path: P) -> Result<(), Self::Error>where P: AsRef<Path>, Self: Serialize,

Implementors§