pub struct PolicyConfig {
pub max_auto_risk: RiskLevel,
pub blocked_actions: Vec<String>,
pub max_actions_per_batch: usize,
pub min_confidence: f32,
}Expand description
策略引擎配置
Fields§
§max_auto_risk: RiskLevel允许自动执行的最大风险等级
blocked_actions: Vec<String>禁止的 action 类型 (按 Debug 名称子串匹配)
max_actions_per_batch: usize单次最多执行的动作数
min_confidence: f32置信度下限——低于此值的意图直接拒绝
Trait Implementations§
Source§impl Clone for PolicyConfig
impl Clone for PolicyConfig
Source§fn clone(&self) -> PolicyConfig
fn clone(&self) -> PolicyConfig
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 PolicyConfig
impl Debug for PolicyConfig
Auto Trait Implementations§
impl Freeze for PolicyConfig
impl RefUnwindSafe for PolicyConfig
impl Send for PolicyConfig
impl Sync for PolicyConfig
impl Unpin for PolicyConfig
impl UnsafeUnpin for PolicyConfig
impl UnwindSafe for PolicyConfig
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