pub struct RustCodegen { /* private fields */ }Expand description
Code generator for Rust types from schemas.
Implementations§
Source§impl RustCodegen
impl RustCodegen
Sourcepub fn with_common_derives(self, enable: bool) -> Self
pub fn with_common_derives(self, enable: bool) -> Self
Set whether to derive common traits (Clone, Debug, etc.).
Sourcepub fn generate(&self, table: &SymbolTable) -> String
pub fn generate(&self, table: &SymbolTable) -> String
Generate complete Rust module from a symbol table.
Auto Trait Implementations§
impl Freeze for RustCodegen
impl RefUnwindSafe for RustCodegen
impl Send for RustCodegen
impl Sync for RustCodegen
impl Unpin for RustCodegen
impl UnwindSafe for RustCodegen
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more