pub enum ProductionConfig {
Global(bool),
PerAnalysis(PerAnalysisProductionConfig),
}Expand description
Production-mode defaults.
Variants§
Global(bool)
Legacy/global form: production = true or "production": true.
PerAnalysis(PerAnalysisProductionConfig)
Per-analysis form.
Implementations§
Source§impl ProductionConfig
impl ProductionConfig
pub const fn for_analysis(self, analysis: ProductionAnalysis) -> bool
pub const fn global(self) -> bool
pub const fn any_enabled(self) -> bool
Trait Implementations§
Source§impl Clone for ProductionConfig
impl Clone for ProductionConfig
Source§fn clone(&self) -> ProductionConfig
fn clone(&self) -> ProductionConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 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
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 Copy for ProductionConfig
impl Eq 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