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 Replywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Node>: Freeze,
PhantomData<String>: Freeze,
PhantomData<TableColumn>: Freeze,
PhantomData<Vec<Value>>: Freeze,
PhantomData<ChartSeries>: Freeze,
PhantomData<Map<String, Value>>: Freeze,
*const ChartSource is !null: Freeze,
PhantomData<ChartSource>: Freeze,
PhantomData<Shape>: Freeze,
PhantomData<GridBlock>: Freeze,
*const LeafNode<u32, f32> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(u32, f32)>>: Freeze,
PhantomData<Patch>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for Reply
impl RefUnwindSafe for Reply
impl Send for Reply
impl Sync for Reply
impl Unpin for Reply
impl UnsafeUnpin for Replywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Node>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<TableColumn>: UnsafeUnpin,
PhantomData<Vec<Value>>: UnsafeUnpin,
PhantomData<ChartSeries>: UnsafeUnpin,
PhantomData<Map<String, Value>>: UnsafeUnpin,
*const ChartSource is !null: UnsafeUnpin,
PhantomData<ChartSource>: UnsafeUnpin,
PhantomData<Shape>: UnsafeUnpin,
PhantomData<GridBlock>: UnsafeUnpin,
*const LeafNode<u32, f32> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(u32, f32)>>: UnsafeUnpin,
PhantomData<Patch>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for Replywhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BoxRaw<ChartSource>: UnwindSafe,
BTreeMap<u32, f32>: UnwindSafe,
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