pub struct CodeGenerationConfig {
pub id: Option<Namespace>,
pub base_path: PathBuf,
pub formatting: bool,
pub ignore_formatter_errors: bool,
pub generate_builders: bool,
}Fields§
§id: Option<Namespace>§base_path: PathBuf§formatting: bool§ignore_formatter_errors: bool§generate_builders: boolImplementations§
Source§impl CodeGenerationConfig
impl CodeGenerationConfig
pub fn new(base_path: PathBuf) -> CodeGenerationConfig
pub fn id(self, id: Namespace) -> Self
pub fn disable_formatting(self) -> Self
pub fn ignore_formatter_errors(self) -> Self
pub fn enable_builders(self) -> Self
pub fn base_path(&self) -> PathBuf
Trait Implementations§
Source§impl AsRef<Path> for CodeGenerationConfig
impl AsRef<Path> for CodeGenerationConfig
Source§impl Debug for CodeGenerationConfig
impl Debug for CodeGenerationConfig
Source§impl From<&Path> for CodeGenerationConfig
impl From<&Path> for CodeGenerationConfig
Auto Trait Implementations§
impl Freeze for CodeGenerationConfig
impl RefUnwindSafe for CodeGenerationConfig
impl Send for CodeGenerationConfig
impl Sync for CodeGenerationConfig
impl Unpin for CodeGenerationConfig
impl UnwindSafe for CodeGenerationConfig
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more