pub struct SurfaceMenuItem {
pub action: SurfaceMenuAction,
pub label: Option<String>,
pub icon: Option<String>,
pub enabled: bool,
pub role: SurfaceMenuItemRole,
}Fields§
§action: SurfaceMenuAction§label: Option<String>Built-ins are localized by semantic action. External actions carry their provider-resolved label here.
icon: Option<String>Resolved local icon reference or a shared built-in icon name.
enabled: bool§role: SurfaceMenuItemRoleImplementations§
Trait Implementations§
Source§impl Clone for SurfaceMenuItem
impl Clone for SurfaceMenuItem
Source§fn clone(&self) -> SurfaceMenuItem
fn clone(&self) -> SurfaceMenuItem
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 SurfaceMenuItem
impl Debug for SurfaceMenuItem
Source§impl<'de> Deserialize<'de> for SurfaceMenuItem
impl<'de> Deserialize<'de> for SurfaceMenuItem
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 SurfaceMenuItem
Source§impl PartialEq for SurfaceMenuItem
impl PartialEq for SurfaceMenuItem
Source§impl Serialize for SurfaceMenuItem
impl Serialize for SurfaceMenuItem
impl StructuralPartialEq for SurfaceMenuItem
Auto Trait Implementations§
impl Freeze for SurfaceMenuItem
impl RefUnwindSafe for SurfaceMenuItem
impl Send for SurfaceMenuItem
impl Sync for SurfaceMenuItem
impl Unpin for SurfaceMenuItem
impl UnsafeUnpin for SurfaceMenuItem
impl UnwindSafe for SurfaceMenuItem
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