pub struct Adjustments {
pub workspace_is_prod: bool,
pub fingerprint_recently_denied: bool,
pub fingerprint_repeatedly_approved: bool,
pub burst_in_progress: bool,
}Expand description
All adaptive adjustments the engine should apply on top of the raw rule severity. Computed by the caller (main.rs) from runtime state (workspace context, decision memory, burst detector). Passing these in keeps the engine pure and testable.
Fields§
§workspace_is_prod: bool§fingerprint_recently_denied: bool§fingerprint_repeatedly_approved: bool§burst_in_progress: boolTrait Implementations§
Source§impl Clone for Adjustments
impl Clone for Adjustments
Source§fn clone(&self) -> Adjustments
fn clone(&self) -> Adjustments
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 moreimpl Copy for Adjustments
Source§impl Debug for Adjustments
impl Debug for Adjustments
Source§impl Default for Adjustments
impl Default for Adjustments
Source§fn default() -> Adjustments
fn default() -> Adjustments
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Adjustments
impl RefUnwindSafe for Adjustments
impl Send for Adjustments
impl Sync for Adjustments
impl Unpin for Adjustments
impl UnsafeUnpin for Adjustments
impl UnwindSafe for Adjustments
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