pub enum ProductionConfig {
Global(bool),
PerAnalysis(PerAnalysisProductionConfig),
}Expand description
Value of the production config key: excludes test/spec/story/dev files
from discovery, either globally or per analysis family.
Variants§
Global(bool)
Boolean form applying to every analysis. The default is false.
PerAnalysis(PerAnalysisProductionConfig)
Object form ({ deadCode?, health?, dupes? }) scoping production mode
per analysis family.
Implementations§
Source§impl ProductionConfig
impl ProductionConfig
Sourcepub const fn for_analysis(self, analysis: ProductionAnalysis) -> bool
pub const fn for_analysis(self, analysis: ProductionAnalysis) -> bool
Whether production mode applies to analysis under this config.
Sourcepub const fn global(self) -> bool
pub const fn global(self) -> bool
The boolean form’s value; false for the per-analysis form, which has
no global toggle.
Sourcepub const fn any_enabled(self) -> bool
pub const fn any_enabled(self) -> bool
Whether production mode is enabled for at least one analysis family.
Trait Implementations§
Source§impl Clone for ProductionConfig
impl Clone for ProductionConfig
impl Copy for ProductionConfig
Source§impl Debug for ProductionConfig
impl Debug for ProductionConfig
Source§impl Default for ProductionConfig
impl Default for ProductionConfig
Source§impl<'de> Deserialize<'de> for ProductionConfig
impl<'de> Deserialize<'de> for ProductionConfig
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 ProductionConfig
Source§impl From<bool> for ProductionConfig
impl From<bool> for ProductionConfig
Source§impl JsonSchema for ProductionConfig
impl JsonSchema for ProductionConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Not for ProductionConfig
impl Not for ProductionConfig
Source§impl PartialEq for ProductionConfig
impl PartialEq for ProductionConfig
Source§impl Serialize for ProductionConfig
impl Serialize for ProductionConfig
impl StructuralPartialEq for ProductionConfig
Auto Trait Implementations§
impl Freeze for ProductionConfig
impl RefUnwindSafe for ProductionConfig
impl Send for ProductionConfig
impl Sync for ProductionConfig
impl Unpin for ProductionConfig
impl UnsafeUnpin for ProductionConfig
impl UnwindSafe for ProductionConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.