pub struct ServiceDependency { /* private fields */ }
Expand description
Represents a service dependency.
Implementations§
Source§impl ServiceDependency
impl ServiceDependency
Sourcepub fn new(injected_type: Type, cardinality: ServiceCardinality) -> Self
pub fn new(injected_type: Type, cardinality: ServiceCardinality) -> Self
Initializes a new service dependency.
§Arguments
injected_type
- The injected type of the service dependencycardinality
- The cardinality of the service dependency
Sourcepub fn injected_type(&self) -> &Type
pub fn injected_type(&self) -> &Type
Gets the injected type associated with the service dependency.
Sourcepub fn cardinality(&self) -> ServiceCardinality
pub fn cardinality(&self) -> ServiceCardinality
Gets the cardinality associated with the service dependency.
Trait Implementations§
Source§impl Clone for ServiceDependency
impl Clone for ServiceDependency
Source§fn clone(&self) -> ServiceDependency
fn clone(&self) -> ServiceDependency
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 ServiceDependency
impl Debug for ServiceDependency
Source§impl PartialEq for ServiceDependency
impl PartialEq for ServiceDependency
impl StructuralPartialEq for ServiceDependency
Auto Trait Implementations§
impl Freeze for ServiceDependency
impl RefUnwindSafe for ServiceDependency
impl Send for ServiceDependency
impl Sync for ServiceDependency
impl Unpin for ServiceDependency
impl UnwindSafe for ServiceDependency
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