Enum TextClick
pub enum TextClick {
OpenUrl(String),
ChangePage(i32),
SuggestCommand(String),
RunCommand(String),
CopyToClipboard(String),
ShowDialog(Tag),
Custom {
id: String,
payload: Option<Tag>,
},
}Expand description
A text component’s click action.
File-opening actions are intentionally absent: mods can neither produce nor
round-trip OpenFile. Capture drops untrusted file-opening action metadata.
Part of the per-node origin tracking follow-up.
Variants§
OpenUrl(String)
Open an HTTP or HTTPS URL.
ChangePage(i32)
Switch to the numbered page of a book.
SuggestCommand(String)
Put a command in the chat input.
RunCommand(String)
Run a command.
CopyToClipboard(String)
Copy text to the clipboard.
ShowDialog(Tag)
Show a dialog identifier or inline declaration.
Custom
A server-defined action with optional payload.
Trait Implementations§
impl Eq for TextClick
impl StructuralPartialEq for TextClick
Auto Trait Implementations§
impl Freeze for TextClick
impl RefUnwindSafe for TextClick
impl Send for TextClick
impl Sync for TextClick
impl Unpin for TextClick
impl UnsafeUnpin for TextClick
impl UnwindSafe for TextClick
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