Struct vino_types::ProviderSignature
source · [−]pub struct ProviderSignature {
pub name: Option<String>,
pub types: StructMap,
pub components: ComponentMap,
}
Expand description
Signature for Providers.
Fields
name: Option<String>
Name of the provider.
types: StructMap
A map of type signatures referenced elsewhere.
components: ComponentMap
A list of ComponentSignatures the provider hosts.
Implementations
sourceimpl ProviderSignature
impl ProviderSignature
sourcepub fn get_component<T: AsRef<str>>(
&self,
field: T
) -> Option<&ComponentSignature>
pub fn get_component<T: AsRef<str>>(
&self,
field: T
) -> Option<&ComponentSignature>
Get the ProviderSignature for the requested field.
Trait Implementations
sourceimpl Clone for ProviderSignature
impl Clone for ProviderSignature
sourcefn clone(&self) -> ProviderSignature
fn clone(&self) -> ProviderSignature
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ProviderSignature
impl Debug for ProviderSignature
sourceimpl Default for ProviderSignature
impl Default for ProviderSignature
sourcefn default() -> ProviderSignature
fn default() -> ProviderSignature
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ProviderSignature
impl<'de> Deserialize<'de> for ProviderSignature
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl MapWrapper<ProviderSignature> for ProviderMap
impl MapWrapper<ProviderSignature> for ProviderMap
sourcefn get_inner_owned(self) -> HashMap<String, ProviderSignature>
fn get_inner_owned(self) -> HashMap<String, ProviderSignature>
Get the inner HashMap.
sourcefn get_inner(&self) -> &HashMap<String, ProviderSignature>
fn get_inner(&self) -> &HashMap<String, ProviderSignature>
Get a reference to the inner HashMap.
sourcefn get_inner_mut(&mut self) -> &mut HashMap<String, ProviderSignature>
fn get_inner_mut(&mut self) -> &mut HashMap<String, ProviderSignature>
Get a mutable reference to the inner HashMap.
sourcefn into_inner(self) -> HashMap<String, T>
fn into_inner(self) -> HashMap<String, T>
Return the inner HashMap.
sourceimpl PartialEq<ProviderSignature> for ProviderSignature
impl PartialEq<ProviderSignature> for ProviderSignature
sourcefn eq(&self, other: &ProviderSignature) -> bool
fn eq(&self, other: &ProviderSignature) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ProviderSignature) -> bool
fn ne(&self, other: &ProviderSignature) -> bool
This method tests for !=
.
sourceimpl Serialize for ProviderSignature
impl Serialize for ProviderSignature
impl StructuralPartialEq for ProviderSignature
Auto Trait Implementations
impl RefUnwindSafe for ProviderSignature
impl Send for ProviderSignature
impl Sync for ProviderSignature
impl Unpin for ProviderSignature
impl UnwindSafe for ProviderSignature
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more