pub struct EntityField<'a> {
pub path: Vec<u16>,
pub name: String,
pub field_type: String,
pub decoded_type: Option<&'static str>,
pub value: Option<&'a FieldValue>,
}Expand description
A read-only entity field entry for inspection UIs and debugging tools.
Fields§
§path: Vec<u16>Numeric field path used by the demo stream.
name: StringHuman-readable dotted field path.
field_type: StringSource 2 field type reported by the serializer.
decoded_type: Option<&'static str>Decoded value type used by source2-demo.
value: Option<&'a FieldValue>Current field value, if the field is present in the state.
Auto Trait Implementations§
impl<'a> Freeze for EntityField<'a>
impl<'a> RefUnwindSafe for EntityField<'a>
impl<'a> Send for EntityField<'a>
impl<'a> Sync for EntityField<'a>
impl<'a> Unpin for EntityField<'a>
impl<'a> UnsafeUnpin for EntityField<'a>
impl<'a> UnwindSafe for EntityField<'a>
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