pub struct CodeGenerator<'a> { /* private fields */ }
Expand description
Main configuration object for code-generation in Go.
Implementations§
Source§impl<'a> CodeGenerator<'a>
impl<'a> CodeGenerator<'a>
Sourcepub fn new(config: &'a CodeGeneratorConfig) -> Self
pub fn new(config: &'a CodeGeneratorConfig) -> Self
Create a Go code generator for the given config.
Sourcepub fn with_serde_module_path(self, serde_module_path: String) -> Self
pub fn with_serde_module_path(self, serde_module_path: String) -> Self
Whether the package providing Serde definitions is located within a different module.
Auto Trait Implementations§
impl<'a> Freeze for CodeGenerator<'a>
impl<'a> RefUnwindSafe for CodeGenerator<'a>
impl<'a> Send for CodeGenerator<'a>
impl<'a> Sync for CodeGenerator<'a>
impl<'a> Unpin for CodeGenerator<'a>
impl<'a> UnwindSafe for CodeGenerator<'a>
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