pub enum A2UIMessage {
BeginRendering {
surface_id: String,
root: String,
},
SurfaceUpdate {
surface_id: String,
components: Vec<A2UIComponentDef>,
},
DataModelUpdate {
surface_id: String,
data: Value,
},
DeleteSurface {
surface_id: String,
},
}Expand description
A2UI message types (v0.8 compatible).
Variants§
BeginRendering
Start rendering a surface
SurfaceUpdate
Update surface components
DataModelUpdate
Update data model
DeleteSurface
Delete a surface
Trait Implementations§
Source§impl Clone for A2UIMessage
impl Clone for A2UIMessage
Source§fn clone(&self) -> A2UIMessage
fn clone(&self) -> A2UIMessage
Returns a duplicate of the value. Read more
1.0.0 · 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 A2UIMessage
impl Debug for A2UIMessage
Source§impl<'de> Deserialize<'de> for A2UIMessage
impl<'de> Deserialize<'de> for A2UIMessage
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
Auto Trait Implementations§
impl Freeze for A2UIMessage
impl RefUnwindSafe for A2UIMessage
impl Send for A2UIMessage
impl Sync for A2UIMessage
impl Unpin for A2UIMessage
impl UnsafeUnpin for A2UIMessage
impl UnwindSafe for A2UIMessage
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