pub struct SlopNode {
pub id: String,
pub node_type: String,
pub properties: Option<Map<String, Value>>,
pub children: Option<Vec<SlopNode>>,
pub affordances: Option<Vec<Affordance>>,
pub meta: Option<NodeMeta>,
pub content_ref: Option<ContentRef>,
}Expand description
A single node in the SLOP state tree (wire format).
Fields§
§id: String§node_type: String§properties: Option<Map<String, Value>>§children: Option<Vec<SlopNode>>§affordances: Option<Vec<Affordance>>§meta: Option<NodeMeta>§content_ref: Option<ContentRef>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlopNode
impl<'de> Deserialize<'de> for SlopNode
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
impl StructuralPartialEq for SlopNode
Auto Trait Implementations§
impl Freeze for SlopNode
impl RefUnwindSafe for SlopNode
impl Send for SlopNode
impl Sync for SlopNode
impl Unpin for SlopNode
impl UnsafeUnpin for SlopNode
impl UnwindSafe for SlopNode
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