pub struct NodeSnapshot {
pub id: u64,
pub view_type: String,
pub component_name: Option<String>,
pub props: HashMap<String, Value>,
pub children: Vec<NodeSnapshot>,
pub layout: Option<LayoutRect>,
}Expand description
Serializable snapshot of a single node (for DevTools UI).
Fields§
§id: u64§view_type: String§component_name: Option<String>§props: HashMap<String, Value>§children: Vec<NodeSnapshot>§layout: Option<LayoutRect>Trait Implementations§
Source§impl Clone for NodeSnapshot
impl Clone for NodeSnapshot
Source§fn clone(&self) -> NodeSnapshot
fn clone(&self) -> NodeSnapshot
Returns a duplicate of the value. Read more
1.0.0 · 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 NodeSnapshot
impl Debug for NodeSnapshot
Source§impl<'de> Deserialize<'de> for NodeSnapshot
impl<'de> Deserialize<'de> for NodeSnapshot
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 NodeSnapshot
impl RefUnwindSafe for NodeSnapshot
impl Send for NodeSnapshot
impl Sync for NodeSnapshot
impl Unpin for NodeSnapshot
impl UnsafeUnpin for NodeSnapshot
impl UnwindSafe for NodeSnapshot
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