pub enum WebMutation {
Insert {
parent: u64,
node: WebNode,
subtree: Vec<WebNode>,
before: Option<u64>,
},
Remove {
id: u64,
},
Text {
id: u64,
text: String,
},
Attribute {
id: u64,
name: String,
value: Option<String>,
},
Viewport {
width: f64,
height: f64,
},
}Expand description
An incremental change to a previously-snapshotted tree.
Variants§
Insert
Remove
Text
Attribute
Viewport
The host’s viewport changed. Viewers may use this to hint responsive re-layout, but are never forced to match the host’s dimensions.
Trait Implementations§
Source§impl Clone for WebMutation
impl Clone for WebMutation
Source§impl Debug for WebMutation
impl Debug for WebMutation
Source§impl<'de> Deserialize<'de> for WebMutation
impl<'de> Deserialize<'de> for WebMutation
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
Source§impl PartialEq for WebMutation
impl PartialEq for WebMutation
Source§impl Serialize for WebMutation
impl Serialize for WebMutation
impl StructuralPartialEq for WebMutation
Auto Trait Implementations§
impl Forget for WebMutation
impl Freeze for WebMutation
impl Move for WebMutation
impl RefUnwindSafe for WebMutation
impl Send for WebMutation
impl Sync for WebMutation
impl Unpin for WebMutation
impl UnsafeUnpin for WebMutation
impl UnwindSafe for WebMutation
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