#[non_exhaustive]pub enum AgentMessageKind {
CreateSurface(CreateSurface),
UpdateComponents(UpdateComponents),
UpdateDataModel(UpdateDataModel),
DeleteSurface(DeleteSurface),
CallRendererFunction(CallRendererFunction),
AgentFunctionResponse(FunctionResponse),
}Expand description
The kinds of agent-to-renderer message.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CreateSurface(CreateSurface)
Create a surface, optionally with its components and data model.
UpdateComponents(UpdateComponents)
Add or replace components on a surface.
UpdateDataModel(UpdateDataModel)
Set or delete a value in a surface’s data model.
DeleteSurface(DeleteSurface)
Remove a surface.
CallRendererFunction(CallRendererFunction)
Ask the renderer to run one of its functions.
AgentFunctionResponse(FunctionResponse)
Answer a callAgentFunction from the renderer.
Trait Implementations§
Source§impl Clone for AgentMessageKind
impl Clone for AgentMessageKind
Source§fn clone(&self) -> AgentMessageKind
fn clone(&self) -> AgentMessageKind
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 AgentMessageKind
impl Debug for AgentMessageKind
Source§impl<'de> Deserialize<'de> for AgentMessageKind
impl<'de> Deserialize<'de> for AgentMessageKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentMessageKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentMessageKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AgentMessageKind
impl PartialEq for AgentMessageKind
Source§impl Serialize for AgentMessageKind
impl Serialize for AgentMessageKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AgentMessageKind
Auto Trait Implementations§
impl Forget for AgentMessageKind
impl Freeze for AgentMessageKind
impl Move for AgentMessageKind
impl RefUnwindSafe for AgentMessageKind
impl Send for AgentMessageKind
impl Sync for AgentMessageKind
impl Unpin for AgentMessageKind
impl UnsafeUnpin for AgentMessageKind
impl UnwindSafe for AgentMessageKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more