pub struct ModeConfig {
pub default_mode: ExecutionMode,
pub skip_low_medium_approval: bool,
pub always_approve_critical: bool,
pub config_path: Option<String>,
}Expand description
Configuration for execution modes
Fields§
§default_mode: ExecutionModeDefault execution mode
skip_low_medium_approval: boolWhether to skip approval gates for Low/Medium risk
always_approve_critical: boolWhether to always require approval for Critical risk
config_path: Option<String>Path to configuration file
Trait Implementations§
Source§impl Clone for ModeConfig
impl Clone for ModeConfig
Source§fn clone(&self) -> ModeConfig
fn clone(&self) -> ModeConfig
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 ModeConfig
impl Debug for ModeConfig
Source§impl Default for ModeConfig
impl Default for ModeConfig
Source§impl<'de> Deserialize<'de> for ModeConfig
impl<'de> Deserialize<'de> for ModeConfig
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 ModeConfig
impl RefUnwindSafe for ModeConfig
impl Send for ModeConfig
impl Sync for ModeConfig
impl Unpin for ModeConfig
impl UnwindSafe for ModeConfig
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