pub struct TaintCheck {
pub tainted: bool,
pub quarantined: bool,
pub watched: bool,
pub taints: Vec<Taint>,
pub quarantines: Vec<Taint>,
pub watches: Vec<Taint>,
pub can_write: bool,
pub required_confidence: f64,
pub authorized_agents: Vec<String>,
pub isolated: bool,
}Expand description
Result of crate::evaluate_access. Consumed by the pre-commit
hook + policy_evaluate_change integration.
Fields§
§tainted: bool§quarantined: bool§watched: bool§taints: Vec<Taint>§quarantines: Vec<Taint>§watches: Vec<Taint>§can_write: boolGiven the current taints + quarantines + supplied
agent_id + confidence, is writing allowed?
required_confidence: f64Minimum confidence the caller must supply to pass the
pre-commit hook. 0.0 when no review-effect taint applies.
Union of authorized_agents across all active quarantines
on this path. Empty when no quarantine applies.
isolated: boolWhen any Isolate-effect taint applies, the path should be
omitted from search / query / get_tree unless the caller
explicitly opts in.
Implementations§
Source§impl TaintCheck
impl TaintCheck
Trait Implementations§
Source§impl Clone for TaintCheck
impl Clone for TaintCheck
Source§impl Debug for TaintCheck
impl Debug for TaintCheck
Source§impl<'de> Deserialize<'de> for TaintCheck
impl<'de> Deserialize<'de> for TaintCheck
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 TaintCheck
impl PartialEq for TaintCheck
Source§impl Serialize for TaintCheck
impl Serialize for TaintCheck
impl StructuralPartialEq for TaintCheck
Auto Trait Implementations§
impl Freeze for TaintCheck
impl RefUnwindSafe for TaintCheck
impl Send for TaintCheck
impl Sync for TaintCheck
impl Unpin for TaintCheck
impl UnsafeUnpin for TaintCheck
impl UnwindSafe for TaintCheck
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