pub struct CodegenOptions {
pub files: Vec<PathBuf>,
pub output: Option<PathBuf>,
pub multiple_files: bool,
pub rustfmt: bool,
}Expand description
Configuration options for Varlink code generation.
See generate_files for an end-to-end usage example.
Fields§
§files: Vec<PathBuf>Input Varlink IDL file(s).
output: Option<PathBuf>Output file path (defaults to stdout if not specified).
multiple_files: boolGenerate separate files for each interface (ignored if output is specified).
rustfmt: boolWhether to format the generated Rust code using rustfmt.
Default value: false
Trait Implementations§
Source§impl Default for CodegenOptions
impl Default for CodegenOptions
Source§fn default() -> CodegenOptions
fn default() -> CodegenOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CodegenOptions
impl RefUnwindSafe for CodegenOptions
impl Send for CodegenOptions
impl Sync for CodegenOptions
impl Unpin for CodegenOptions
impl UnsafeUnpin for CodegenOptions
impl UnwindSafe for CodegenOptions
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