pub struct ModuleDef {
pub name: String,
pub module_type: String,
pub position: Option<(f32, f32)>,
pub state: Option<Value>,
}Available on crate feature
alloc only.Expand description
Serializable module definition
Fields§
§name: StringUnique instance name
module_type: StringModule type identifier
position: Option<(f32, f32)>UI position (optional)
state: Option<Value>Module-specific state
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModuleDef
impl<'de> Deserialize<'de> for ModuleDef
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 Tsify for ModuleDef
impl Tsify for ModuleDef
Auto Trait Implementations§
impl Freeze for ModuleDef
impl RefUnwindSafe for ModuleDef
impl Send for ModuleDef
impl Sync for ModuleDef
impl Unpin for ModuleDef
impl UnsafeUnpin for ModuleDef
impl UnwindSafe for ModuleDef
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