pub struct StaticBuildConfig {
pub output_dir: Option<String>,
pub only: Option<String>,
pub include_schematic: bool,
pub pretty: bool,
}Expand description
Configuration for static builds.
Fields§
§output_dir: Option<String>Output directory for generated files
only: Option<String>Optional filter to build only specific axons
include_schematic: boolWhether to include schematic.json in output
pretty: boolWhether to pretty-print JSON output
Implementations§
Source§impl StaticBuildConfig
impl StaticBuildConfig
Sourcepub fn with_output_dir(self, dir: impl Into<String>) -> Self
pub fn with_output_dir(self, dir: impl Into<String>) -> Self
Set the output directory
Sourcepub fn with_only(self, name: impl Into<String>) -> Self
pub fn with_only(self, name: impl Into<String>) -> Self
Filter to build only the specified axon
Sourcepub fn with_schematic(self, include: bool) -> Self
pub fn with_schematic(self, include: bool) -> Self
Enable or disable schematic output
Sourcepub fn with_pretty(self, pretty: bool) -> Self
pub fn with_pretty(self, pretty: bool) -> Self
Enable or disable pretty JSON output
Sourcepub fn get_output_dir(&self) -> &str
pub fn get_output_dir(&self) -> &str
Get the default output directory
Trait Implementations§
Source§impl Clone for StaticBuildConfig
impl Clone for StaticBuildConfig
Source§fn clone(&self) -> StaticBuildConfig
fn clone(&self) -> StaticBuildConfig
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 Debug for StaticBuildConfig
impl Debug for StaticBuildConfig
Auto Trait Implementations§
impl Freeze for StaticBuildConfig
impl RefUnwindSafe for StaticBuildConfig
impl Send for StaticBuildConfig
impl Sync for StaticBuildConfig
impl Unpin for StaticBuildConfig
impl UnsafeUnpin for StaticBuildConfig
impl UnwindSafe for StaticBuildConfig
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