pub struct PromptConfig {
pub prompt_text: Option<String>,
pub output_format: OutputFormat,
pub quiet_mode: bool,
pub verbose: bool,
pub validation_rules: Vec<ValidationRuleConfig>,
pub ui_config: UiConfig,
pub interaction_config: InteractionConfig,
}
Expand description
Main configuration for the prompt tool
Fields§
§prompt_text: Option<String>
§output_format: OutputFormat
§quiet_mode: bool
§verbose: bool
§validation_rules: Vec<ValidationRuleConfig>
§ui_config: UiConfig
§interaction_config: InteractionConfig
Implementations§
Source§impl PromptConfig
impl PromptConfig
pub fn from_args(args: PromptArgs) -> Result<Self>
Trait Implementations§
Source§impl Clone for PromptConfig
impl Clone for PromptConfig
Source§fn clone(&self) -> PromptConfig
fn clone(&self) -> PromptConfig
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 Freeze for PromptConfig
impl RefUnwindSafe for PromptConfig
impl Send for PromptConfig
impl Sync for PromptConfig
impl Unpin for PromptConfig
impl UnwindSafe for PromptConfig
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