pub struct FrontendWidget {
pub id: String,
pub slot: FrontendSlot,
pub text: String,
pub tone: FrontendTone,
pub symbol: Option<FrontendSymbol>,
pub icon_only: bool,
pub progress: Option<FrontendProgress>,
pub content: Option<FrontendWidgetContent>,
pub action: Option<Op>,
}Expand description
One capability-rendered view mounted into a standard frontend slot.
Fields§
§id: String§slot: FrontendSlot§text: String§tone: FrontendTone§symbol: Option<FrontendSymbol>§icon_only: bool§progress: Option<FrontendProgress>§content: Option<FrontendWidgetContent>§action: Option<Op>Optional operation invoked when a frontend activates this widget.
Trait Implementations§
Source§impl Clone for FrontendWidget
impl Clone for FrontendWidget
Source§fn clone(&self) -> FrontendWidget
fn clone(&self) -> FrontendWidget
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 FrontendWidget
impl Debug for FrontendWidget
Source§impl<'de> Deserialize<'de> for FrontendWidget
impl<'de> Deserialize<'de> for FrontendWidget
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
impl Eq for FrontendWidget
Source§impl PartialEq for FrontendWidget
impl PartialEq for FrontendWidget
Source§impl Serialize for FrontendWidget
impl Serialize for FrontendWidget
impl StructuralPartialEq for FrontendWidget
Auto Trait Implementations§
impl Freeze for FrontendWidget
impl RefUnwindSafe for FrontendWidget
impl Send for FrontendWidget
impl Sync for FrontendWidget
impl Unpin for FrontendWidget
impl UnsafeUnpin for FrontendWidget
impl UnwindSafe for FrontendWidget
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