pub struct Policy {
pub auto_apply_enabled: bool,
pub auto_apply: Vec<AutoApplyGrant>,
pub deny: Vec<String>,
pub severity_floors: BTreeMap<String, Severity>,
pub telemetry: TelemetryMode,
}Expand description
The parsed host policy. Everything default-closed.
Fields§
§auto_apply_enabled: boolMaster opt-in (same posture as allow_destructive_ops: default off).
Auto-apply never fires unless this is true AND a grant matches.
auto_apply: Vec<AutoApplyGrant>Auto-apply grants (default: none).
deny: Vec<String>Analyzer families the host disables entirely.
severity_floors: BTreeMap<String, Severity>Per-analyzer severity floors (family → floor); combined with the file’s floors by taking the stricter of the two.
telemetry: TelemetryModeImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Policy
impl<'de> Deserialize<'de> for Policy
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 Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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