tauri_specta

Trait LanguageExt

Source
pub trait LanguageExt {
    type Error: Error + From<Error>;

    // Required methods
    fn render(&self, cfg: &ExportContext) -> Result<String, Self::Error>;
    fn format(&self, path: &Path) -> Result<(), Self::Error>;
}
Expand description

Implemented for all languages which Tauri Specta supports exporting to.

Currently implemented for:

Required Associated Types§

Source

type Error: Error + From<Error>

TODO

Required Methods§

Source

fn render(&self, cfg: &ExportContext) -> Result<String, Self::Error>

render the bindings file

Source

fn format(&self, path: &Path) -> Result<(), Self::Error>

TODO

Implementations on Foreign Types§

Source§

impl LanguageExt for JSDoc

Source§

type Error = ExportError

Source§

fn render(&self, cfg: &ExportContext) -> Result<String, Self::Error>

Source§

fn format(&self, path: &Path) -> Result<(), Self::Error>

Source§

impl LanguageExt for Typescript

Source§

impl<L: LanguageExt> LanguageExt for &L

Source§

type Error = <L as LanguageExt>::Error

Source§

fn render(&self, cfg: &ExportContext) -> Result<String, Self::Error>

Source§

fn format(&self, path: &Path) -> Result<(), Self::Error>

Implementors§