pub struct ProductionEnv {
pub global: Option<bool>,
pub dead_code: Option<bool>,
pub health: Option<bool>,
pub dupes: Option<bool>,
}Expand description
The values of the FALLOW_PRODUCTION* variables. None is a variable
that is not set or that has no boolean value.
Fields§
§global: Option<bool>FALLOW_PRODUCTION.
dead_code: Option<bool>FALLOW_PRODUCTION_DEAD_CODE.
health: Option<bool>FALLOW_PRODUCTION_HEALTH.
dupes: Option<bool>FALLOW_PRODUCTION_DUPES.
Implementations§
Source§impl ProductionEnv
impl ProductionEnv
Sourcepub fn from_lookup(lookup: impl Fn(&str) -> Option<String>) -> ProductionEnv
pub fn from_lookup(lookup: impl Fn(&str) -> Option<String>) -> ProductionEnv
Read the variables through lookup, which returns the value of one
variable.
Sourcepub const fn override_for(self, analysis: ProductionAnalysis) -> Option<bool>
pub const fn override_for(self, analysis: ProductionAnalysis) -> Option<bool>
The production override of one analysis from the environment: the
variable of the analysis, else FALLOW_PRODUCTION. None means that
the environment does not decide.
Trait Implementations§
Source§impl Clone for ProductionEnv
impl Clone for ProductionEnv
Source§fn clone(&self) -> ProductionEnv
fn clone(&self) -> ProductionEnv
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 moreimpl Copy for ProductionEnv
Source§impl Debug for ProductionEnv
impl Debug for ProductionEnv
Source§impl Default for ProductionEnv
impl Default for ProductionEnv
Source§fn default() -> ProductionEnv
fn default() -> ProductionEnv
Returns the “default value” for a type. Read more
impl Eq for ProductionEnv
Source§impl PartialEq for ProductionEnv
impl PartialEq for ProductionEnv
impl StructuralPartialEq for ProductionEnv
Auto Trait Implementations§
impl Forget for ProductionEnv
impl Freeze for ProductionEnv
impl Move for ProductionEnv
impl RefUnwindSafe for ProductionEnv
impl Send for ProductionEnv
impl Sync for ProductionEnv
impl Unpin for ProductionEnv
impl UnsafeUnpin for ProductionEnv
impl UnwindSafe for ProductionEnv
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
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