pub struct ValidationGenerator { /* private fields */ }Expand description
Generator for Zod validation schemas
Implementations§
Source§impl ValidationGenerator
impl ValidationGenerator
pub fn new(config: GeneratorConfig) -> ValidationGenerator
Sourcepub fn generate_zod_schema(&self, ty: &GearMeshType) -> Option<String>
pub fn generate_zod_schema(&self, ty: &GearMeshType) -> Option<String>
Generates a Zod schema
Trait Implementations§
Source§impl Default for ValidationGenerator
impl Default for ValidationGenerator
Source§fn default() -> ValidationGenerator
fn default() -> ValidationGenerator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ValidationGenerator
impl RefUnwindSafe for ValidationGenerator
impl Send for ValidationGenerator
impl Sync for ValidationGenerator
impl Unpin for ValidationGenerator
impl UnwindSafe for ValidationGenerator
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