pub enum DependencyType {
Required,
Optional,
Multiple,
Trait,
Factory,
Scoped,
Decorated,
}Expand description
Types of dependency relationships between services.
Variants§
Required
Required single dependency
Optional
Optional dependency (might not be present)
Multiple
Multiple instances of the same service
Trait
Trait dependency
Factory
Factory dependency (service creates other services)
Scoped
Scoped dependency (specific to scope context)
Decorated
Decorated dependency (wrapped by decorators)
Trait Implementations§
Source§impl Clone for DependencyType
impl Clone for DependencyType
Source§fn clone(&self) -> DependencyType
fn clone(&self) -> DependencyType
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 DependencyType
impl Debug for DependencyType
Source§impl PartialEq for DependencyType
impl PartialEq for DependencyType
impl Eq for DependencyType
impl StructuralPartialEq for DependencyType
Auto Trait Implementations§
impl Freeze for DependencyType
impl RefUnwindSafe for DependencyType
impl Send for DependencyType
impl Sync for DependencyType
impl Unpin for DependencyType
impl UnwindSafe for DependencyType
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