pub struct InspectedEntity {
pub entity: EntityId,
pub name: String,
pub components_json: Vec<ComponentJson>,
}Expand description
Snapshot of an inspected entity.
Components are captured generically as JSON via the macro-generated
ComponentRegistration::to_json. The inspector iterates components_json
and renders every entry through a single field-typed walker — there is
no per-component code path. The entity’s Name lives in the inspector
header rather than as a component card.
Fields§
§entity: EntityId§name: String§components_json: Vec<ComponentJson>Every component on this entity, captured as JSON. The inspector renders this list directly — no per-component hard-coding.
Trait Implementations§
Source§impl Clone for InspectedEntity
impl Clone for InspectedEntity
Source§fn clone(&self) -> InspectedEntity
fn clone(&self) -> InspectedEntity
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 moreAuto Trait Implementations§
impl Freeze for InspectedEntity
impl RefUnwindSafe for InspectedEntity
impl Send for InspectedEntity
impl Sync for InspectedEntity
impl Unpin for InspectedEntity
impl UnsafeUnpin for InspectedEntity
impl UnwindSafe for InspectedEntity
Blanket Implementations§
Source§impl<T> AppLifecycle for Twhere
T: ?Sized,
impl<T> AppLifecycle for Twhere
T: ?Sized,
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