pub struct CrateGenerationParams<'a> {
pub output: &'a Path,
pub package: &'a str,
pub version: &'a str,
pub canonical_url: &'a str,
pub author: &'a str,
pub description: &'a str,
pub command_invoked: &'a str,
pub crate_name: Option<&'a str>,
}Expand description
Parameters for crate generation
Fields§
§output: &'a PathOutput directory for the crate
package: &'a strPackage name (e.g., “hl7.fhir.r4.core”)
version: &'a strPackage version (e.g., “4.0.1”)
canonical_url: &'a strCanonical URL from package.json
Author from package.json
description: &'a strDescription from package.json
command_invoked: &'a strCommand that was invoked to generate this crate
crate_name: Option<&'a str>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<'a> Clone for CrateGenerationParams<'a>
impl<'a> Clone for CrateGenerationParams<'a>
Source§fn clone(&self) -> CrateGenerationParams<'a>
fn clone(&self) -> CrateGenerationParams<'a>
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<'a> Freeze for CrateGenerationParams<'a>
impl<'a> RefUnwindSafe for CrateGenerationParams<'a>
impl<'a> Send for CrateGenerationParams<'a>
impl<'a> Sync for CrateGenerationParams<'a>
impl<'a> Unpin for CrateGenerationParams<'a>
impl<'a> UnsafeUnpin for CrateGenerationParams<'a>
impl<'a> UnwindSafe for CrateGenerationParams<'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