pub struct GeneratorConfig {
pub use_bigint: bool,
pub generate_branded: bool,
pub generate_validation: bool,
pub generate_zod: bool,
pub generate_jsdoc: bool,
pub indent: String,
}Expand description
生成設定
Fields§
§use_bigint: boolBigIntを自動的に使用するか
generate_branded: boolBranded Typeを生成するか
generate_validation: boolバリデーション関数を生成するか
generate_zod: boolZodスキーマを生成するか
generate_jsdoc: boolJSDocを生成するか
indent: Stringインデント文字列
Implementations§
Source§impl GeneratorConfig
impl GeneratorConfig
pub fn new() -> GeneratorConfig
pub fn with_bigint(self, use_bigint: bool) -> GeneratorConfig
pub fn with_branded(self, generate: bool) -> GeneratorConfig
pub fn with_validation(self, generate: bool) -> GeneratorConfig
pub fn with_zod(self, generate: bool) -> GeneratorConfig
pub fn with_jsdoc(self, generate: bool) -> GeneratorConfig
Trait Implementations§
Source§impl Clone for GeneratorConfig
impl Clone for GeneratorConfig
Source§fn clone(&self) -> GeneratorConfig
fn clone(&self) -> GeneratorConfig
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 Debug for GeneratorConfig
impl Debug for GeneratorConfig
Source§impl Default for GeneratorConfig
impl Default for GeneratorConfig
Source§fn default() -> GeneratorConfig
fn default() -> GeneratorConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GeneratorConfig
impl RefUnwindSafe for GeneratorConfig
impl Send for GeneratorConfig
impl Sync for GeneratorConfig
impl Unpin for GeneratorConfig
impl UnwindSafe for GeneratorConfig
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