pub struct OptionOverrides {
pub dialect: Option<Dialect>,
pub types: Option<TypePolicy>,
pub lints: BTreeMap<String, LintLevel>,
pub deny_warnings: Option<bool>,
pub debug_info: bool,
}Expand description
Explicit policy a mount supplies that wins over brink.toml — the
CLI/API > file > default precedence rule (#1005). A field left None
(or, for lints, absent from the map) means “the caller has no explicit
value,” so the discovered brink.toml (or the default) governs that
field.
Fields§
§dialect: Option<Dialect>An explicit dialect (e.g. the CLI --dialect flag), if the caller set
one.
types: Option<TypePolicy>An explicit type policy (e.g. the CLI --types flag), if set.
lints: BTreeMap<String, LintLevel>Explicit per-code lint-level overrides (e.g. the CLI’s repeatable
--deny/--warn/--allow <CODE> flags, issue #1373), keyed by the
diagnostic code’s string form. Always wins over the same code in a
discovered brink.toml’s [lints] table — folded in by
AnalysisOptions::apply_lint_overrides, which validates each code
the same way the file’s table is validated (#1160: only codes whose
default severity is Warning are overridable).
deny_warnings: Option<bool>An explicit deny-warnings (e.g. the CLI’s -D warnings flag), if
set. None means “the caller has no explicit value,” same as
dialect/types.
debug_info: boolD6 (docs/debugger-spec.md §1.2/§2, issue #3184): the CLI’s
explicit --debug-info flag. Unlike dialect/types/
deny_warnings, this is a plain bool rather than Option<bool> —
there is no brink.toml project-file spelling for it to defer to
(the ship-policy ruling scopes this to mount-time compiles only), so
there is no “caller didn’t say” case to distinguish from “caller
said off.” false (the Default) never turns the section on.
Trait Implementations§
Source§impl Clone for OptionOverrides
impl Clone for OptionOverrides
Source§fn clone(&self) -> OptionOverrides
fn clone(&self) -> OptionOverrides
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OptionOverrides
impl Debug for OptionOverrides
Source§impl Default for OptionOverrides
impl Default for OptionOverrides
Source§fn default() -> OptionOverrides
fn default() -> OptionOverrides
impl Eq for OptionOverrides
Source§impl PartialEq for OptionOverrides
impl PartialEq for OptionOverrides
impl StructuralPartialEq for OptionOverrides
Auto Trait Implementations§
impl Freeze for OptionOverrides
impl RefUnwindSafe for OptionOverrides
impl Send for OptionOverrides
impl Sync for OptionOverrides
impl Unpin for OptionOverrides
impl UnsafeUnpin for OptionOverrides
impl UnwindSafe for OptionOverrides
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.