pub struct CodegenConfig {
pub output_dir: String,
pub module_name: String,
pub with_serde: bool,
pub with_docs: bool,
pub use_macro_calls: bool,
pub type_mappings: HashMap<String, String>,
pub crate_name: Option<String>,
}Expand description
Configuration for the code generator
Fields§
§output_dir: StringOutput directory for generated files
module_name: StringModule name for generated types
with_serde: boolWhether to generate serde annotations
with_docs: boolWhether to generate documentation
use_macro_calls: boolWhether to emit macro calls for primitive types instead of regular fields
type_mappings: HashMap<String, String>Custom type mappings from FHIR to Rust types
crate_name: Option<String>Optional override for the generated crate name (e.g., “rh-hl7-fhir-r4-core”). When None, the name is auto-derived from the FHIR package name.
Trait Implementations§
Source§impl Clone for CodegenConfig
impl Clone for CodegenConfig
Source§fn clone(&self) -> CodegenConfig
fn clone(&self) -> CodegenConfig
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 Config for CodegenConfig
impl Config for CodegenConfig
Source§impl Debug for CodegenConfig
impl Debug for CodegenConfig
Source§impl Default for CodegenConfig
impl Default for CodegenConfig
Source§impl<'de> Deserialize<'de> for CodegenConfig
impl<'de> Deserialize<'de> for CodegenConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CodegenConfig
impl RefUnwindSafe for CodegenConfig
impl Send for CodegenConfig
impl Sync for CodegenConfig
impl Unpin for CodegenConfig
impl UnsafeUnpin for CodegenConfig
impl UnwindSafe for CodegenConfig
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