pub trait SourceInstaller {
    type Error;

    // Required methods
    fn install_module(
        &self,
        config: &CodeGeneratorConfig,
        registry: &Registry
    ) -> Result<(), Self::Error>;
    fn install_serde_runtime(&self) -> Result<(), Self::Error>;
    fn install_bincode_runtime(&self) -> Result<(), Self::Error>;
    fn install_bcs_runtime(&self) -> Result<(), Self::Error>;
}
Expand description

How to copy generated source code and available runtimes for a given language.

Required Associated Types§

Required Methods§

source

fn install_module( &self, config: &CodeGeneratorConfig, registry: &Registry ) -> Result<(), Self::Error>

Create a module exposing the container types contained in the registry.

source

fn install_serde_runtime(&self) -> Result<(), Self::Error>

Install the serde runtime.

source

fn install_bincode_runtime(&self) -> Result<(), Self::Error>

Install the bincode runtime.

source

fn install_bcs_runtime(&self) -> Result<(), Self::Error>

Install the Libra Canonical Serialization (BCS) runtime.

Implementors§

source§

impl SourceInstaller for serde_generate::cpp::Installer

§

type Error = Box<dyn Error + 'static, Global>

source§

impl SourceInstaller for serde_generate::csharp::Installer

§

type Error = Box<dyn Error + 'static, Global>

source§

impl SourceInstaller for serde_generate::dart::Installer

§

type Error = Box<dyn Error + 'static, Global>

source§

impl SourceInstaller for serde_generate::golang::Installer

§

type Error = Box<dyn Error + 'static, Global>

source§

impl SourceInstaller for serde_generate::java::Installer

§

type Error = Box<dyn Error + 'static, Global>

source§

impl SourceInstaller for serde_generate::ocaml::Installer

§

type Error = Box<dyn Error + 'static, Global>

source§

impl SourceInstaller for serde_generate::python3::Installer

§

type Error = Box<dyn Error + 'static, Global>

source§

impl SourceInstaller for serde_generate::rust::Installer

§

type Error = Box<dyn Error + 'static, Global>

source§

impl SourceInstaller for serde_generate::swift::Installer

§

type Error = Box<dyn Error + 'static, Global>

source§

impl SourceInstaller for serde_generate::typescript::Installer

§

type Error = Box<dyn Error + 'static, Global>