pub enum FrontendEvent {
Render {
capability: String,
block: FrontendBlock,
},
Widget {
capability: String,
item: FrontendWidget,
},
RemoveWidget {
capability: String,
id: String,
},
Picker {
title: String,
options: Vec<FrontendPickerOption>,
},
Preview {
id: String,
title: String,
subtitle: String,
page_id: String,
update: FrontendPreviewUpdate,
events: Vec<FrontendPreviewEvent>,
next: Option<Op>,
},
}Expand description
Generic capability UI updates understood by every frontend.
Variants§
Trait Implementations§
Source§impl Clone for FrontendEvent
impl Clone for FrontendEvent
Source§fn clone(&self) -> FrontendEvent
fn clone(&self) -> FrontendEvent
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 FrontendEvent
impl Debug for FrontendEvent
Source§impl<'de> Deserialize<'de> for FrontendEvent
impl<'de> Deserialize<'de> for FrontendEvent
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 FrontendEvent
impl PartialEq for FrontendEvent
Source§impl Serialize for FrontendEvent
impl Serialize for FrontendEvent
impl StructuralPartialEq for FrontendEvent
Auto Trait Implementations§
impl Freeze for FrontendEvent
impl RefUnwindSafe for FrontendEvent
impl Send for FrontendEvent
impl Sync for FrontendEvent
impl Unpin for FrontendEvent
impl UnsafeUnpin for FrontendEvent
impl UnwindSafe for FrontendEvent
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