pub struct LiveView {
pub view: ViewRef,
pub tree: Option<Node>,
pub patch: Vec<Patch>,
pub values: Map<String, Value>,
pub error: Option<String>,
pub faults: Vec<String>,
pub reset: bool,
}Expand description
A live view’s tree or a change to it (crate::ServerMsg::LiveView). Exactly one of:
tree (replace what the client has), patch (apply to it, in order), error (the
view couldn’t be had: show it at the site), reset (forget it; open it again to get
the new one, e.g. after the plugin reloaded). values force field values over what the
user typed (only to the client whose event caused the reply). faults are what the
engine had to fix in the plugin’s tree (also in the plugin’s status for the model).
Fields§
§view: ViewRef§tree: Option<Node>§patch: Vec<Patch>§values: Map<String, Value>§error: Option<String>§faults: Vec<String>§reset: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for LiveView
impl<'de> Deserialize<'de> for LiveView
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 LiveView
Auto Trait Implementations§
impl Forget for LiveView
impl Freeze for LiveView
impl Move for LiveView
impl RefUnwindSafe for LiveView
impl Send for LiveView
impl Sync for LiveView
impl Unpin for LiveView
impl UnsafeUnpin for LiveView
impl UnwindSafe for LiveView
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