pub struct FileGenerator<'a> { /* private fields */ }Implementations§
Source§impl<'a> FileGenerator<'a>
impl<'a> FileGenerator<'a>
pub fn generate_complete_crate<P: AsRef<Path>>( &self, output_dir: P, crate_name: &str, _structures: &[StructureDefinition], ) -> CodegenResult<()>
Source§impl<'a> FileGenerator<'a>
impl<'a> FileGenerator<'a>
pub fn generate_enum_files<P: AsRef<Path>>( &self, enums_dir: P, enum_generator: &EnumGenerator<'_>, ) -> CodegenResult<()>
pub fn generate_enums_mod_file<P: AsRef<Path>>( &self, enums_dir: P, enum_generator: &EnumGenerator<'_>, ) -> CodegenResult<()>
Source§impl<'a> FileGenerator<'a>
impl<'a> FileGenerator<'a>
pub fn generate_trait_to_file<P: AsRef<Path>>( &self, _structure_def: &StructureDefinition, output_path: P, rust_trait: &RustTrait, ) -> CodegenResult<()>
pub fn generate_traits_to_file<P: AsRef<Path>>( &self, _structure_def: &StructureDefinition, output_path: P, rust_traits: &[&RustTrait], ) -> CodegenResult<()>
pub fn generate_trait_file_from_trait<P: AsRef<Path>>( &self, rust_trait: &RustTrait, output_path: P, ) -> CodegenResult<()>
Source§impl<'a> FileGenerator<'a>
impl<'a> FileGenerator<'a>
pub fn new( config: &'a CodegenConfig, token_generator: &'a TokenGenerator, ) -> Self
pub fn generate_macros_file<P: AsRef<Path>>( &self, output_path: P, ) -> CodegenResult<()>
pub fn generate_lib_file<P: AsRef<Path>>( &self, output_path: P, ) -> CodegenResult<()>
pub fn generate_module_file<P: AsRef<Path>>( &self, module_dir: P, module_names: &[String], ) -> CodegenResult<()>
pub fn generate_combined_primitives_file<P: AsRef<Path>>( &self, primitive_structure_defs: &[StructureDefinition], output_path: P, ) -> CodegenResult<()>
pub fn generate_to_organized_directories<P: AsRef<Path>>( &self, structure_def: &StructureDefinition, base_output_dir: P, rust_struct: &RustStruct, nested_structs: &[RustStruct], ) -> CodegenResult<()>
pub fn generate_trait_to_organized_directory<P: AsRef<Path>>( &self, structure_def: &StructureDefinition, base_output_dir: P, rust_trait: &RustTrait, ) -> CodegenResult<()>
pub fn classify_fhir_structure_def( &self, structure_def: &StructureDefinition, ) -> FhirTypeCategory
pub fn generate_to_file<P: AsRef<Path>>( &self, structure_def: &StructureDefinition, output_path: P, rust_struct: &RustStruct, nested_structs: &[RustStruct], ) -> CodegenResult<()>
Auto Trait Implementations§
impl<'a> Freeze for FileGenerator<'a>
impl<'a> RefUnwindSafe for FileGenerator<'a>
impl<'a> Send for FileGenerator<'a>
impl<'a> Sync for FileGenerator<'a>
impl<'a> Unpin for FileGenerator<'a>
impl<'a> UnsafeUnpin for FileGenerator<'a>
impl<'a> UnwindSafe for FileGenerator<'a>
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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