pub enum ComponentDefinition {
Transform(SerializableTransform),
Parent(SerializableParent),
}Expand description
A serializable, type-erased representation of a single component.
Variants§
Transform(SerializableTransform)
The transform component, representing the entity’s position, rotation, and scale.
Parent(SerializableParent)
The parent component, representing the entity’s parent-child relationship.
Trait Implementations§
Source§impl Debug for ComponentDefinition
impl Debug for ComponentDefinition
Source§impl<'de> Deserialize<'de> for ComponentDefinition
impl<'de> Deserialize<'de> for ComponentDefinition
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 ComponentDefinition
impl RefUnwindSafe for ComponentDefinition
impl Send for ComponentDefinition
impl Sync for ComponentDefinition
impl Unpin for ComponentDefinition
impl UnwindSafe for ComponentDefinition
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