pub struct ComponentJson<'w> {
pub name: &'w str,
pub version: u32,
pub value: Option<Value>,
}Expand description
One component (or resource) as JSON, with the schema version it is written with.
Fields§
§name: &'w str§version: u32§value: Option<Value>None: no JSON view (opaque bytes, typed components that are not shown).
Trait Implementations§
Source§impl<'w> Clone for ComponentJson<'w>
impl<'w> Clone for ComponentJson<'w>
Source§impl<'w> Debug for ComponentJson<'w>
impl<'w> Debug for ComponentJson<'w>
Source§impl<'w> PartialEq for ComponentJson<'w>
impl<'w> PartialEq for ComponentJson<'w>
impl<'w> StructuralPartialEq for ComponentJson<'w>
Auto Trait Implementations§
impl<'w> Forget for ComponentJson<'w>
impl<'w> Freeze for ComponentJson<'w>
impl<'w> RefUnwindSafe for ComponentJson<'w>
impl<'w> Send for ComponentJson<'w>
impl<'w> Sync for ComponentJson<'w>
impl<'w> Unpin for ComponentJson<'w>
impl<'w> UnsafeUnpin for ComponentJson<'w>
impl<'w> UnwindSafe for ComponentJson<'w>
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