pub struct EntityDefinition {
pub id: EntityId,
pub components: Vec<ComponentDefinition>,
}Expand description
A serializable representation of a single entity and its components.
Fields§
§id: EntityIdThe unique identifier for the entity.
components: Vec<ComponentDefinition>The components attached to the entity.
Trait Implementations§
Source§impl Debug for EntityDefinition
impl Debug for EntityDefinition
Source§impl<'de> Deserialize<'de> for EntityDefinition
impl<'de> Deserialize<'de> for EntityDefinition
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 EntityDefinition
impl RefUnwindSafe for EntityDefinition
impl Send for EntityDefinition
impl Sync for EntityDefinition
impl Unpin for EntityDefinition
impl UnwindSafe for EntityDefinition
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