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 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 ServiceCardinality
impl Debug for ServiceCardinality
Source§impl PartialEq for ServiceCardinality
impl PartialEq for ServiceCardinality
impl Copy for ServiceCardinality
impl StructuralPartialEq for ServiceCardinality
Auto Trait Implementations§
impl Freeze for ServiceCardinality
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