pub struct ComponentJson {
pub type_name: String,
pub domain: Option<u8>,
pub value: Value,
}Expand description
Snapshot of one component on an inspected entity, captured generically
as JSON via the macro-generated to_json on ComponentRegistration.
This is the path adding a new component costs zero editor code: any
type that derives Component is auto-registered and shows up here.
Components with a hard-coded inspector card (Transform, Camera, etc.)
are skipped from the generic list to avoid double-rendering.
Fields§
§type_name: StringComponentRegistration::type_name — card title and lookup key.
domain: Option<u8>Domain bucket, mirrored from SemanticDomain (Spatial=0, Render=1,
Audio=2, Physics=3, Ui=4). None means the type isn’t registered
on a CRPECS page (e.g. types registered via inventory only).
value: ValueLive JSON value. The shape mirrors the component’s
Serializable<Type> form.
Trait Implementations§
Source§impl Clone for ComponentJson
impl Clone for ComponentJson
Source§fn clone(&self) -> ComponentJson
fn clone(&self) -> ComponentJson
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 ComponentJson
impl RefUnwindSafe for ComponentJson
impl Send for ComponentJson
impl Sync for ComponentJson
impl Unpin for ComponentJson
impl UnsafeUnpin for ComponentJson
impl UnwindSafe for ComponentJson
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