pub struct ChatHoverEvent {
pub show_text: Option<Box<ChatObject>>,
pub value: Option<Box<ChatObject>>,
pub show_item: Option<String>,
pub show_entity: Option<String>,
}
Expand description
HoverEvent
data for a chat component
Fields§
§show_text: Option<Box<ChatObject>>
Text to show when the item is hovered over
value: Option<Box<ChatObject>>
Same as show_text
, but for servers < 1.16
show_item: Option<String>
Displays the item of the given NBT
show_entity: Option<String>
Displays information about the entity with the given NBT
Trait Implementations§
Source§impl Debug for ChatHoverEvent
impl Debug for ChatHoverEvent
Source§impl<'de> Deserialize<'de> for ChatHoverEvent
impl<'de> Deserialize<'de> for ChatHoverEvent
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 ChatHoverEvent
impl RefUnwindSafe for ChatHoverEvent
impl Send for ChatHoverEvent
impl Sync for ChatHoverEvent
impl Unpin for ChatHoverEvent
impl UnwindSafe for ChatHoverEvent
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