pub struct ScriptingValue {
pub type_name: String,
pub value: PrefabValue,
}
Fields§
§type_name: String
§value: PrefabValue
Implementations§
Source§impl ScriptingValue
impl ScriptingValue
pub fn register<T: DeserializeOwned + 'static>()
pub fn register_named<T: DeserializeOwned + 'static>(type_name: impl ToString)
pub fn new<T: Serialize + 'static>(value: T) -> Result<Self, Box<dyn Error>>
pub fn produce(&self) -> Result<DynamicManaged, Box<dyn Error>>
Trait Implementations§
Source§impl Clone for ScriptingValue
impl Clone for ScriptingValue
Source§fn clone(&self) -> ScriptingValue
fn clone(&self) -> ScriptingValue
Returns a copy 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 ScriptingValue
impl Debug for ScriptingValue
Source§impl<'de> Deserialize<'de> for ScriptingValue
impl<'de> Deserialize<'de> for ScriptingValue
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 ScriptingValue
impl RefUnwindSafe for ScriptingValue
impl Send for ScriptingValue
impl Sync for ScriptingValue
impl Unpin for ScriptingValue
impl UnwindSafe for ScriptingValue
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