pub struct InstantiatedModel {
pub name: String,
pub id: Uuid,
pub model: Option<Link>,
pub specializations: Vec<SpecializeModel>,
}Expand description
Instantiates an existing model into the current model.
Fields§
§name: StringHuman-readable label for the instantiation.
id: UuidGlobally unique identifer of the instantiation.
model: Option<Link>Link to the model to instantiate.
specializations: Vec<SpecializeModel>List of specializations to perform on the instantiated model.
Trait Implementations§
Source§impl Debug for InstantiatedModel
impl Debug for InstantiatedModel
Source§impl<'de> Deserialize<'de> for InstantiatedModel
impl<'de> Deserialize<'de> for InstantiatedModel
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
Source§impl From<InstantiatedModel> for JsValuewhere
InstantiatedModel: Serialize,
impl From<InstantiatedModel> for JsValuewhere
InstantiatedModel: Serialize,
Source§fn from(value: InstantiatedModel) -> Self
fn from(value: InstantiatedModel) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for InstantiatedModelwhere
Self: DeserializeOwned,
impl FromWasmAbi for InstantiatedModelwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for InstantiatedModelwhere
InstantiatedModel: Serialize,
impl IntoWasmAbi for InstantiatedModelwhere
InstantiatedModel: Serialize,
Source§impl OptionFromWasmAbi for InstantiatedModelwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for InstantiatedModelwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for InstantiatedModelwhere
InstantiatedModel: Serialize,
impl OptionIntoWasmAbi for InstantiatedModelwhere
InstantiatedModel: Serialize,
Source§impl PartialEq for InstantiatedModel
impl PartialEq for InstantiatedModel
Source§impl RefFromWasmAbi for InstantiatedModelwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for InstantiatedModelwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = SelfOwner<InstantiatedModel>
type Anchor = SelfOwner<InstantiatedModel>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for InstantiatedModel
impl Serialize for InstantiatedModel
Source§impl Tsify for InstantiatedModel
impl Tsify for InstantiatedModel
const DECL: &'static str = "/**\n * Instantiates an existing model into the current model.\n */\nexport interface InstantiatedModel {\n /**\n * Human-readable label for the instantiation.\n */\n name: string;\n /**\n * Globally unique identifer of the instantiation.\n */\n id: Uuid;\n /**\n * Link to the model to instantiate.\n */\n model: Link | null;\n /**\n * List of specializations to perform on the instantiated model.\n */\n specializations: SpecializeModel[];\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for InstantiatedModelwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for InstantiatedModelwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for InstantiatedModelwhere
InstantiatedModel: Serialize,
impl VectorIntoWasmAbi for InstantiatedModelwhere
InstantiatedModel: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribeVector for InstantiatedModel
impl WasmDescribeVector for InstantiatedModel
impl Eq for InstantiatedModel
impl StructuralPartialEq for InstantiatedModel
Auto Trait Implementations§
impl Freeze for InstantiatedModel
impl RefUnwindSafe for InstantiatedModel
impl Send for InstantiatedModel
impl Sync for InstantiatedModel
impl Unpin for InstantiatedModel
impl UnwindSafe for InstantiatedModel
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
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.