pub struct WriteOptions {
pub filename: PathBuf,
pub template: Option<Template>,
pub template_file: Option<PathBuf>,
pub template_string: Option<String>,
pub log_level: Option<LogLevel>,
pub mcp_server_cmd: Vec<String>,
}
Expand description
Options used when running the Create
or Update
variants of DiscoveryCommand
.
Fields§
§filename: PathBuf
§template: Option<Template>
Select an output template from the built-in options.
template_file: Option<PathBuf>
Path to a custom template file written in the Handlebars format.
template_string: Option<String>
Template content provided as a string.
log_level: Option<LogLevel>
Specifies the logging level for the application (default: info)
mcp_server_cmd: Vec<String>
Command and arguments to launch the MCP server.
Implementations§
Source§impl WriteOptions
impl WriteOptions
Sourcepub fn match_template(&self) -> DiscoveryResult<OutputTemplate>
pub fn match_template(&self) -> DiscoveryResult<OutputTemplate>
Resolves the output template (built-in, file, or string) based on user input.
pub fn validate(&self) -> DiscoveryResult<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WriteOptions
impl RefUnwindSafe for WriteOptions
impl Send for WriteOptions
impl Sync for WriteOptions
impl Unpin for WriteOptions
impl UnwindSafe for WriteOptions
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