pub struct DropdownMenuAction {
pub label: String,
pub action: Action,
pub destructive: bool,
}Expand description
A single action item in a dropdown menu.
Fields§
§label: String§action: Action§destructive: boolTrait Implementations§
Source§impl Clone for DropdownMenuAction
impl Clone for DropdownMenuAction
Source§fn clone(&self) -> DropdownMenuAction
fn clone(&self) -> DropdownMenuAction
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 DropdownMenuAction
impl Debug for DropdownMenuAction
Source§impl<'de> Deserialize<'de> for DropdownMenuAction
impl<'de> Deserialize<'de> for DropdownMenuAction
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 DropdownMenuAction
impl PartialEq for DropdownMenuAction
Source§impl Serialize for DropdownMenuAction
impl Serialize for DropdownMenuAction
impl StructuralPartialEq for DropdownMenuAction
Auto Trait Implementations§
impl Freeze for DropdownMenuAction
impl RefUnwindSafe for DropdownMenuAction
impl Send for DropdownMenuAction
impl Sync for DropdownMenuAction
impl Unpin for DropdownMenuAction
impl UnsafeUnpin for DropdownMenuAction
impl UnwindSafe for DropdownMenuAction
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