pub struct AnalyzerConfigUpdate {
pub enabled: Option<bool>,
pub severity_floor: Option<Severity>,
pub clear_floor: bool,
pub params: Option<Map<String, Value>>,
pub namespaces: Option<Vec<String>>,
}Expand description
A partial update to one analyzer’s AnalyzerConfig — every field absent
(None/false) leaves the stored value untouched, so the console can PATCH
a single toggle. Deserialized straight from the POST /api/loop/config
body.
Fields§
§enabled: Option<bool>Enable/disable the analyzer. None leaves it as-is.
severity_floor: Option<Severity>Set the severity floor. None leaves it as-is; to CLEAR an existing
floor, send clear_floor: true instead.
clear_floor: bool§params: Option<Map<String, Value>>Replace the param overrides (validated against the manifest before store).
None leaves them as-is.
namespaces: Option<Vec<String>>Replace the namespace scoping. None leaves it as-is; Some([]) clears.
Trait Implementations§
Source§impl Clone for AnalyzerConfigUpdate
impl Clone for AnalyzerConfigUpdate
Source§impl Debug for AnalyzerConfigUpdate
impl Debug for AnalyzerConfigUpdate
Source§impl Default for AnalyzerConfigUpdate
impl Default for AnalyzerConfigUpdate
Source§impl<'de> Deserialize<'de> for AnalyzerConfigUpdate
impl<'de> Deserialize<'de> for AnalyzerConfigUpdate
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 AnalyzerConfigUpdate
impl RefUnwindSafe for AnalyzerConfigUpdate
impl Send for AnalyzerConfigUpdate
impl Sync for AnalyzerConfigUpdate
impl Unpin for AnalyzerConfigUpdate
impl UnsafeUnpin for AnalyzerConfigUpdate
impl UnwindSafe for AnalyzerConfigUpdate
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