pub struct GatesConfig {
pub fake_markers: Vec<String>,
pub evidence_patterns: Vec<String>,
pub marker_ignore_paths: Vec<String>,
}Expand description
Deterministic-gate configuration: banned diff sentinels, evidence patterns, and diff paths excluded from marker scanning.
Fields§
§fake_markers: Vec<String>§evidence_patterns: Vec<String>§marker_ignore_paths: Vec<String>Implementations§
Source§impl GatesConfig
impl GatesConfig
Sourcepub fn to_policy(&self) -> GatePolicy
pub fn to_policy(&self) -> GatePolicy
The resolved gate policy: config values plus built-in defaults for any list left empty, so an empty config never silently disables a gate.
Trait Implementations§
Source§impl Clone for GatesConfig
impl Clone for GatesConfig
Source§fn clone(&self) -> GatesConfig
fn clone(&self) -> GatesConfig
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 GatesConfig
impl Debug for GatesConfig
Source§impl Default for GatesConfig
impl Default for GatesConfig
Source§impl<'de> Deserialize<'de> for GatesConfigwhere
GatesConfig: Default,
impl<'de> Deserialize<'de> for GatesConfigwhere
GatesConfig: Default,
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
impl Eq for GatesConfig
Source§impl PartialEq for GatesConfig
impl PartialEq for GatesConfig
Source§fn eq(&self, other: &GatesConfig) -> bool
fn eq(&self, other: &GatesConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GatesConfig
impl Serialize for GatesConfig
impl StructuralPartialEq for GatesConfig
Auto Trait Implementations§
impl Freeze for GatesConfig
impl RefUnwindSafe for GatesConfig
impl Send for GatesConfig
impl Sync for GatesConfig
impl Unpin for GatesConfig
impl UnsafeUnpin for GatesConfig
impl UnwindSafe for GatesConfig
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