pub struct Instantiation {
pub dependency: Option<String>,
pub arguments: IndexMap<String, InstantiationArg>,
}
Expand description
An instantiation of a component.
Fields§
§dependency: Option<String>
The name of the dependency being instantiated.
Defaults to a dependency with the same name as the instantiation.
arguments: IndexMap<String, InstantiationArg>
The explicit instantiation arguments.
Maps the argument name to the name of the instance to pass as the argument.
Trait Implementations§
Source§impl Clone for Instantiation
impl Clone for Instantiation
Source§fn clone(&self) -> Instantiation
fn clone(&self) -> Instantiation
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 Instantiation
impl Debug for Instantiation
Source§impl Default for Instantiation
impl Default for Instantiation
Source§fn default() -> Instantiation
fn default() -> Instantiation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Instantiation
impl<'de> Deserialize<'de> for Instantiation
Source§fn 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
Auto Trait Implementations§
impl Freeze for Instantiation
impl RefUnwindSafe for Instantiation
impl Send for Instantiation
impl Sync for Instantiation
impl Unpin for Instantiation
impl UnwindSafe for Instantiation
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