pub struct Provider {
pub identity: OwnerIdentity,
pub home: OwnerFact,
pub composes: &'static str,
}Expand description
One declared provider of descriptor material.
The owning-home seat is what keeps a composition a declaration rather than a registry: a provider does not stand on its own authority, it stands on the owner fact it derives from.
Fields§
§identity: OwnerIdentityThe provider’s own identity.
home: OwnerFactThe owning home whose fact this provider derives from.
composes: &'static strThe kind it composes, by that kind’s declared name.
Trait Implementations§
impl Copy for Provider
impl Eq for Provider
impl StructuralPartialEq for Provider
Auto Trait Implementations§
impl Freeze for Provider
impl RefUnwindSafe for Provider
impl Send for Provider
impl Sync for Provider
impl Unpin for Provider
impl UnsafeUnpin for Provider
impl UnwindSafe for Provider
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