pub struct ProviderBinding {
pub provider_id: String,
pub provider: ProviderHandle,
}Fields§
§provider_id: String§provider: ProviderHandleImplementations§
Source§impl ProviderBinding
impl ProviderBinding
pub fn new( provider_id: impl Into<String>, provider: ProviderHandle, ) -> Result<Self, ProviderResolutionError>
pub fn from_provider(provider: ProviderHandle) -> Self
Trait Implementations§
Source§impl Clone for ProviderBinding
impl Clone for ProviderBinding
Source§fn clone(&self) -> ProviderBinding
fn clone(&self) -> ProviderBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProviderBinding
impl Debug for ProviderBinding
Source§impl Default for ProviderBinding
impl Default for ProviderBinding
Source§fn default() -> ProviderBinding
fn default() -> ProviderBinding
Returns the “default value” for a type. Read more
impl Eq for ProviderBinding
Source§impl PartialEq for ProviderBinding
impl PartialEq for ProviderBinding
Source§fn eq(&self, other: &ProviderBinding) -> bool
fn eq(&self, other: &ProviderBinding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProviderBinding
Auto Trait Implementations§
impl !RefUnwindSafe for ProviderBinding
impl !UnwindSafe for ProviderBinding
impl Freeze for ProviderBinding
impl Send for ProviderBinding
impl Sync for ProviderBinding
impl Unpin for ProviderBinding
impl UnsafeUnpin for ProviderBinding
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