pub struct Reply {
pub view: Option<Node>,
pub patch: Vec<Patch>,
pub values: Map<String, Value>,
}Expand description
A plugin’s answer to an event: a whole new view, or patches to the current one; both
may be empty. values overrides what the user typed (e.g. {"new": ""} clears an input
after Add): a reply never changes a field’s text otherwise, unless its value changed.
Fields§
§view: Option<Node>§patch: Vec<Patch>§values: Map<String, Value>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reply
impl<'de> Deserialize<'de> for Reply
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Reply
Auto Trait Implementations§
impl Forget for Reply
impl Freeze for Reply
impl Move for Reply
impl RefUnwindSafe for Reply
impl Send for Reply
impl Sync for Reply
impl Unpin for Reply
impl UnsafeUnpin for Reply
impl UnwindSafe for Reply
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