pub enum ClickEvent {
OpenUrl(String),
RunCommand(String),
SuggestCommand(String),
CopyToClipboard(String),
}Expand description
An action triggered when the player clicks a text component.
Variants§
OpenUrl(String)
Opens the given URL in the player’s browser.
RunCommand(String)
Sends the given string as a chat command.
SuggestCommand(String)
Inserts the given string into the chat input without sending.
CopyToClipboard(String)
Copies the given string to the 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 PartialEq for ClickEvent
impl PartialEq 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 UnsafeUnpin 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