Trait markdown_parser::adapt::Adapter[][src]

pub trait Adapter {
    fn adapt<T>(&self, md: Markdown) -> MarkdownResult
    where
        T: Serialize + DeserializeOwned
;
fn ser_fm<T>(&self, data: &T) -> Result<String, Error>
    where
        T: Serialize
; }

MDAdapter trait can transform the format of a Markdown into the given kind

Required methods

fn adapt<T>(&self, md: Markdown) -> MarkdownResult where
    T: Serialize + DeserializeOwned
[src]

fn ser_fm<T>(&self, data: &T) -> Result<String, Error> where
    T: Serialize
[src]

Loading content...

Implementors

impl Adapter for JsonAdapter[src]

impl Adapter for TomlAdapter[src]

impl Adapter for YamlAdapter[src]

Loading content...