Enum di::ServiceCardinality
source · pub enum ServiceCardinality {
ZeroOrOne,
ExactlyOne,
ZeroOrMore,
}Expand description
Represents the possible cardinalities of a service dependency.
Variants§
ZeroOrOne
Indicates a cardinality of zero or one (0:1).
ExactlyOne
Indicates a cardinality of exactly one (1:1).
ZeroOrMore
Indicates a cardinality of zero or more (0:*).
Trait Implementations§
source§impl Clone for ServiceCardinality
impl Clone for ServiceCardinality
source§fn clone(&self) -> ServiceCardinality
fn clone(&self) -> ServiceCardinality
Returns a copy 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 ServiceCardinality
impl Debug for ServiceCardinality
source§impl PartialEq for ServiceCardinality
impl PartialEq for ServiceCardinality
source§fn eq(&self, other: &ServiceCardinality) -> bool
fn eq(&self, other: &ServiceCardinality) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for ServiceCardinality
impl StructuralPartialEq for ServiceCardinality
Auto Trait Implementations§
impl RefUnwindSafe for ServiceCardinality
impl Send for ServiceCardinality
impl Sync for ServiceCardinality
impl Unpin for ServiceCardinality
impl UnwindSafe for ServiceCardinality
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