pub enum ValidationWarning {
SingletonDependsOnTransient {
singleton: &'static str,
transient: &'static str,
},
UnusedService {
service: &'static str,
},
MultipleTraitImplementations {
trait_name: &'static str,
implementations: Vec<&'static str>,
},
}Expand description
A validation warning about potentially problematic configuration.
Variants§
SingletonDependsOnTransient
Singleton depends on transient (will always get same instance)
UnusedService
Service registered but never used
MultipleTraitImplementations
Multiple implementations for the same trait
Trait Implementations§
Source§impl Clone for ValidationWarning
impl Clone for ValidationWarning
Source§fn clone(&self) -> ValidationWarning
fn clone(&self) -> ValidationWarning
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 moreAuto Trait Implementations§
impl Freeze for ValidationWarning
impl RefUnwindSafe for ValidationWarning
impl Send for ValidationWarning
impl Sync for ValidationWarning
impl Unpin for ValidationWarning
impl UnwindSafe for ValidationWarning
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