pub struct AutoApplyGrant {
pub analyzer: String,
pub targets: Vec<String>,
pub max_severity: Severity,
}Expand description
One auto-apply grant: an analyzer family may auto-apply to these target
classes up to (and including) max_severity.
Fields§
§analyzer: StringAnalyzer family (e.g. loop.duplicate_sweep) or full id; matched by
family so a version bump keeps the grant.
targets: Vec<String>Eligible target classes: memory and/or query only (prompt/host are
never auto-appliable and are rejected at eval time regardless).
max_severity: SeverityHighest severity this grant covers.
Trait Implementations§
Source§impl Clone for AutoApplyGrant
impl Clone for AutoApplyGrant
Source§fn clone(&self) -> AutoApplyGrant
fn clone(&self) -> AutoApplyGrant
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 AutoApplyGrant
impl Debug for AutoApplyGrant
Source§impl<'de> Deserialize<'de> for AutoApplyGrant
impl<'de> Deserialize<'de> for AutoApplyGrant
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
Source§impl PartialEq for AutoApplyGrant
impl PartialEq for AutoApplyGrant
Source§impl Serialize for AutoApplyGrant
impl Serialize for AutoApplyGrant
impl StructuralPartialEq for AutoApplyGrant
Auto Trait Implementations§
impl Freeze for AutoApplyGrant
impl RefUnwindSafe for AutoApplyGrant
impl Send for AutoApplyGrant
impl Sync for AutoApplyGrant
impl Unpin for AutoApplyGrant
impl UnsafeUnpin for AutoApplyGrant
impl UnwindSafe for AutoApplyGrant
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