pub enum SuggestionAction {
Message(String),
Command(String),
Url(String),
Custom(Value),
}Expand description
Action for a suggestion
Variants§
Message(String)
Send a message
Command(String)
Execute a command
Url(String)
Open a URL
Custom(Value)
Custom action
Trait Implementations§
Source§impl Clone for SuggestionAction
impl Clone for SuggestionAction
Source§fn clone(&self) -> SuggestionAction
fn clone(&self) -> SuggestionAction
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 SuggestionAction
impl Debug for SuggestionAction
Source§impl<'de> Deserialize<'de> for SuggestionAction
impl<'de> Deserialize<'de> for SuggestionAction
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 SuggestionAction
impl RefUnwindSafe for SuggestionAction
impl Send for SuggestionAction
impl Sync for SuggestionAction
impl Unpin for SuggestionAction
impl UnwindSafe for SuggestionAction
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