pub struct RustBackend;Expand description
Backend that emits Rust structs (serde-compatible).
Trait Implementations§
Source§impl Clone for RustBackend
impl Clone for RustBackend
Source§fn clone(&self) -> RustBackend
fn clone(&self) -> RustBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CodeGenBackend for RustBackend
impl CodeGenBackend for RustBackend
Source§fn generate(
&self,
schemas: &[JsonSchema],
settings: &CodeGenSettings,
) -> CodeGenResult<GenerateRustOutput>
fn generate( &self, schemas: &[JsonSchema], settings: &CodeGenSettings, ) -> CodeGenResult<GenerateRustOutput>
Generate model source for each schema. Returns shared buffer (if any) and one buffer per schema. Read more
Source§impl Debug for RustBackend
impl Debug for RustBackend
Source§impl Default for RustBackend
impl Default for RustBackend
Source§fn default() -> RustBackend
fn default() -> RustBackend
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RustBackend
impl RefUnwindSafe for RustBackend
impl Send for RustBackend
impl Sync for RustBackend
impl Unpin for RustBackend
impl UnsafeUnpin for RustBackend
impl UnwindSafe for RustBackend
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