pub struct GenerationConfig {
pub extract: bool,
pub serde_serialize: bool,
pub serde_deserialize: bool,
pub visibility: Visibility,
pub allow_warnings: bool,
}Expand description
Configuration for code generation.
Use the builder pattern to construct:
ⓘ
let config = GenerationConfig::builder()
.serde_serialize(true)
.serde_deserialize(true)
.build();Fields§
§extract: boolGenerate EureExtract implementations.
serde_serialize: boolDerive serde::Serialize for generated types.
serde_deserialize: boolDerive serde::Deserialize for generated types.
visibility: VisibilityVisibility of generated types.
allow_warnings: boolAdd #[allow(...)] attributes to suppress warnings.
Implementations§
Source§impl GenerationConfig
impl GenerationConfig
Sourcepub fn builder() -> GenerationConfigBuilder
pub fn builder() -> GenerationConfigBuilder
Create an instance of GenerationConfig using the builder syntax
Trait Implementations§
Source§impl Clone for GenerationConfig
impl Clone for GenerationConfig
Source§fn clone(&self) -> GenerationConfig
fn clone(&self) -> GenerationConfig
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 moreAuto Trait Implementations§
impl Freeze for GenerationConfig
impl RefUnwindSafe for GenerationConfig
impl Send for GenerationConfig
impl Sync for GenerationConfig
impl Unpin for GenerationConfig
impl UnwindSafe for GenerationConfig
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