pub struct ShellReviewConfig {
pub enabled: bool,
pub model: Option<String>,
pub on_needs_approval: ShellReviewAction,
pub risk_threshold: ShellReviewRiskLevel,
pub system_prompt: Option<String>,
}Expand description
Shell command safety review configuration.
Fields§
§enabled: boolWhether shell review is enabled.
model: Option<String>Model identifier used for shell review.
on_needs_approval: ShellReviewActionAction when a command needs approval.
risk_threshold: ShellReviewRiskLevelRisk level where intervention begins.
system_prompt: Option<String>Optional custom system prompt.
Trait Implementations§
Source§impl Clone for ShellReviewConfig
impl Clone for ShellReviewConfig
Source§fn clone(&self) -> ShellReviewConfig
fn clone(&self) -> ShellReviewConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ShellReviewConfig
impl Debug for ShellReviewConfig
Source§impl Default for ShellReviewConfig
impl Default for ShellReviewConfig
Source§fn default() -> ShellReviewConfig
fn default() -> ShellReviewConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ShellReviewConfig
impl<'de> Deserialize<'de> for ShellReviewConfig
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
impl Eq for ShellReviewConfig
Source§impl PartialEq for ShellReviewConfig
impl PartialEq for ShellReviewConfig
Source§impl Serialize for ShellReviewConfig
impl Serialize for ShellReviewConfig
impl StructuralPartialEq for ShellReviewConfig
Auto Trait Implementations§
impl Freeze for ShellReviewConfig
impl RefUnwindSafe for ShellReviewConfig
impl Send for ShellReviewConfig
impl Sync for ShellReviewConfig
impl Unpin for ShellReviewConfig
impl UnsafeUnpin for ShellReviewConfig
impl UnwindSafe for ShellReviewConfig
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