pub struct EntityDefinition {
pub id: EntityId,
pub components: Vec<ComponentDefinition>,
}Expand description
An entity definition in the stable intermediate representation.
Fields§
§id: EntityIdThe original entity ID (for reference).
components: Vec<ComponentDefinition>The components attached to this entity.
Trait Implementations§
Source§impl Clone for EntityDefinition
impl Clone for EntityDefinition
Source§fn clone(&self) -> EntityDefinition
fn clone(&self) -> EntityDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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 UnsafeUnpin 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