pub struct ModeConstraints {
pub allow_file_operations: bool,
pub allow_command_execution: bool,
pub allow_code_generation: bool,
pub require_specs: bool,
pub auto_think_more_threshold: Option<ComplexityLevel>,
}Expand description
Constraints that apply to a mode
Fields§
§allow_file_operations: boolWhether file operations are allowed
allow_command_execution: boolWhether command execution is allowed
allow_code_generation: boolWhether code generation is allowed
require_specs: boolWhether specs are required
auto_think_more_threshold: Option<ComplexityLevel>Complexity threshold for auto-enabling Think More
Trait Implementations§
Source§impl Clone for ModeConstraints
impl Clone for ModeConstraints
Source§fn clone(&self) -> ModeConstraints
fn clone(&self) -> ModeConstraints
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 ModeConstraints
impl Debug for ModeConstraints
Source§impl<'de> Deserialize<'de> for ModeConstraints
impl<'de> Deserialize<'de> for ModeConstraints
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ModeConstraints
impl RefUnwindSafe for ModeConstraints
impl Send for ModeConstraints
impl Sync for ModeConstraints
impl Unpin for ModeConstraints
impl UnwindSafe for ModeConstraints
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