pub struct GateConfig {
pub enabled: bool,
pub overrides: BTreeMap<Box<str>, GateRuleOverride>,
}Expand description
Deserialized [gate] section of .pedant.toml.
Keys are either enabled (master switch) or rule names mapped to
false (disabled) or a severity string ("deny", "warn", "info").
Fields§
§enabled: boolMaster switch; false disables all gate rules.
overrides: BTreeMap<Box<str>, GateRuleOverride>Per-rule overrides keyed by rule name.
Trait Implementations§
Source§impl Debug for GateConfig
impl Debug for GateConfig
Source§impl Default for GateConfig
impl Default for GateConfig
Source§impl<'de> Deserialize<'de> for GateConfig
impl<'de> Deserialize<'de> for GateConfig
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 GateConfig
impl RefUnwindSafe for GateConfig
impl Send for GateConfig
impl Sync for GateConfig
impl Unpin for GateConfig
impl UnsafeUnpin for GateConfig
impl UnwindSafe for GateConfig
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
Source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more