pub struct CodegenOptions<'a> {
pub output: PathBuf,
pub filter_names: &'a [String],
pub dry_run: bool,
}Expand description
Everything the CLI’s request-handling layer needs to know.
Fields§
§output: PathBufOutput directory for generated .elm files. Unused when
dry_run is true.
filter_names: &'a [String]Filter to specific Elm type names. Empty means no filter.
dry_run: boolIf true, return the rendered modules as a string instead of
writing to disk.
Auto Trait Implementations§
impl<'a> Freeze for CodegenOptions<'a>
impl<'a> RefUnwindSafe for CodegenOptions<'a>
impl<'a> Send for CodegenOptions<'a>
impl<'a> Sync for CodegenOptions<'a>
impl<'a> Unpin for CodegenOptions<'a>
impl<'a> UnsafeUnpin for CodegenOptions<'a>
impl<'a> UnwindSafe for CodegenOptions<'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