/// Adds a new component to the realm with the given component declaration
Adds a new component to the realm with the given component declaration
Adds a new component to the realm with the given component declaration
pub async fn add_child_from_decl(
        &self,
        name: impl Into<String>,
        decl: cm_rust::ComponentDecl,
        options: ChildOptions,
    ) -> Result<ChildRef, Error> {
        self.root_realm.add_child_from_decl(name, decl, options).await
    }
pub async fn add_child_from_decl ( & self , name : impl Into < String > , decl : cm_rust :: ComponentDecl , options : ChildOptions , ) -> Result < ChildRef , Error > { self . root_realm . add_child_from_decl ( name , decl , options ) . await }
Adds a new component to the realm with the given component declaration
Adds a new component to the realm with the given component declaration
&self
name
impl Into<String>
decl
cm_rust::ComponentDecl
options
ChildOptions