Trait serde_generate::SourceInstaller [−][src]
pub trait SourceInstaller { type Error; 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.
Associated Types
Required methods
fn install_module(
&self,
config: &CodeGeneratorConfig,
registry: &Registry
) -> Result<(), Self::Error>
fn install_module(
&self,
config: &CodeGeneratorConfig,
registry: &Registry
) -> Result<(), Self::Error>
Create a module exposing the container types contained in the registry.
fn install_serde_runtime(&self) -> Result<(), Self::Error>
fn install_serde_runtime(&self) -> Result<(), Self::Error>
Install the serde runtime.
fn install_bincode_runtime(&self) -> Result<(), Self::Error>
fn install_bincode_runtime(&self) -> Result<(), Self::Error>
Install the bincode runtime.
fn install_bcs_runtime(&self) -> Result<(), Self::Error>
fn install_bcs_runtime(&self) -> Result<(), Self::Error>
Install the Libra Canonical Serialization (BCS) runtime.