Struct mc_query::status::ChatClickEvent
source · 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