pub enum AgentPayload {
CreateSurface(CreateSurface),
UpdateComponents(UpdateComponents),
UpdateDataModel(UpdateDataModel),
DeleteSurface(DeleteSurface),
CallRendererFunction(CallRendererFunction),
AgentFunctionResponse(FunctionResponse),
}Expand description
The payload of an AgentMessage, externally tagged by its wire key.
Variants§
CreateSurface(CreateSurface)
Create a surface and fix its catalog.
UpdateComponents(UpdateComponents)
Add or replace components on a surface.
UpdateDataModel(UpdateDataModel)
Upsert part of a surface’s data model.
DeleteSurface(DeleteSurface)
Remove a surface entirely.
CallRendererFunction(CallRendererFunction)
Ask the renderer to run one of its local functions.
AgentFunctionResponse(FunctionResponse)
Answer a renderer-initiated RendererPayload::CallAgentFunction.
Trait Implementations§
Source§impl Clone for AgentPayload
impl Clone for AgentPayload
Source§fn clone(&self) -> AgentPayload
fn clone(&self) -> AgentPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentPayload
impl Debug for AgentPayload
Source§impl<'de> Deserialize<'de> for AgentPayload
impl<'de> Deserialize<'de> for AgentPayload
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 AgentPayload
impl PartialEq for AgentPayload
Source§fn eq(&self, other: &AgentPayload) -> bool
fn eq(&self, other: &AgentPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentPayload
impl Serialize for AgentPayload
impl StructuralPartialEq for AgentPayload
Auto Trait Implementations§
impl Freeze for AgentPayload
impl RefUnwindSafe for AgentPayload
impl Send for AgentPayload
impl Sync for AgentPayload
impl Unpin for AgentPayload
impl UnsafeUnpin for AgentPayload
impl UnwindSafe for AgentPayload
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