pub enum ProviderOrigin {
Provided,
AutoConfiguration,
Service,
Repository,
Provider,
}Expand description
Describes how a provider enters an application graph.
Variants§
Provided
A value supplied directly by the application.
AutoConfiguration
A value supplied by an official auto-configuration integration.
Service
A service declaration.
Repository
A repository declaration.
Provider
A general provider declaration.
Trait Implementations§
Source§impl Clone for ProviderOrigin
impl Clone for ProviderOrigin
impl Copy for ProviderOrigin
Source§impl Debug for ProviderOrigin
impl Debug for ProviderOrigin
impl Eq for ProviderOrigin
Source§impl From<ProviderKind> for ProviderOrigin
impl From<ProviderKind> for ProviderOrigin
Source§fn from(kind: ProviderKind) -> Self
fn from(kind: ProviderKind) -> Self
Converts to this type from the input type.
Source§impl Ord for ProviderOrigin
impl Ord for ProviderOrigin
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ProviderOrigin
impl PartialEq for ProviderOrigin
Source§impl PartialOrd for ProviderOrigin
impl PartialOrd for ProviderOrigin
impl StructuralPartialEq for ProviderOrigin
Auto Trait Implementations§
impl Forget for ProviderOrigin
impl Freeze for ProviderOrigin
impl Move for ProviderOrigin
impl RefUnwindSafe for ProviderOrigin
impl Send for ProviderOrigin
impl Sync for ProviderOrigin
impl Unpin for ProviderOrigin
impl UnsafeUnpin for ProviderOrigin
impl UnwindSafe for ProviderOrigin
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.