pub enum ClickEvent {
OpenUrl {
url: String,
},
OpenFile {
path: String,
},
RunCommand {
command: String,
},
SuggestCommand {
command: String,
},
ChangePage {
page: i32,
},
CopyToClipboard {
value: String,
},
}Expand description
Actions triggered when clicking text
Variants§
OpenUrl
Open URL in browser
OpenFile
Open file (client-side only)
RunCommand
Execute command
SuggestCommand
Suggest command in chat
ChangePage
Change page in books
CopyToClipboard
Copy text to clipboard
Trait Implementations§
Source§impl Clone for ClickEvent
impl Clone for ClickEvent
Source§fn clone(&self) -> ClickEvent
fn clone(&self) -> ClickEvent
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 ClickEvent
impl Debug for ClickEvent
Source§impl<'de> Deserialize<'de> for ClickEvent
impl<'de> Deserialize<'de> for ClickEvent
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 ClickEvent
impl PartialEq for ClickEvent
Source§impl Serialize for ClickEvent
impl Serialize for ClickEvent
impl Eq for ClickEvent
impl StructuralPartialEq for ClickEvent
Auto Trait Implementations§
impl Freeze for ClickEvent
impl RefUnwindSafe for ClickEvent
impl Send for ClickEvent
impl Sync for ClickEvent
impl Unpin for ClickEvent
impl UnwindSafe for ClickEvent
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