pub struct ChatClickEvent {
pub open_url: Option<String>,
pub run_command: Option<String>,
pub suggest_command: Option<String>,
pub copy_to_clipboard: Option<String>,
}
Expand description
ClickEvent
data for a chat component
Fields§
§open_url: Option<String>
Opens the URL in the user’s default browser. Protocol must be http
or https
run_command: Option<String>
Runs the command. Simply causes the user to say the string in chat - so only has command effect if it starts with /
Irrelevant for motd purposes.
suggest_command: Option<String>
Replaces the content of the user’s chat box with the given text.
Irrelevant for motd purposes.
copy_to_clipboard: Option<String>
Copies the given text into the client’s clipboard.
Trait Implementations§
Source§impl Debug for ChatClickEvent
impl Debug for ChatClickEvent
Source§impl<'de> Deserialize<'de> for ChatClickEvent
impl<'de> Deserialize<'de> for ChatClickEvent
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 ChatClickEvent
impl RefUnwindSafe for ChatClickEvent
impl Send for ChatClickEvent
impl Sync for ChatClickEvent
impl Unpin for ChatClickEvent
impl UnwindSafe for ChatClickEvent
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