Enum valence_text::HoverEvent
source · pub enum HoverEvent {
ShowText(Text),
ShowItem {
id: Ident<Cow<'static, str>>,
count: Option<i32>,
tag: Cow<'static, str>,
},
ShowEntity {
id: Uuid,
kind: Option<Ident<Cow<'static, str>>>,
name: Option<Text>,
},
}
Expand description
Action to take when mouse-hovering on the text.
Variants§
ShowText(Text)
Displays a tooltip with the given text.
ShowItem
Shows an item.
Fields
ShowEntity
Shows an entity.
Trait Implementations§
source§impl Clone for HoverEvent
impl Clone for HoverEvent
source§fn clone(&self) -> HoverEvent
fn clone(&self) -> HoverEvent
Returns a copy 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 HoverEvent
impl Debug for HoverEvent
source§impl<'de> Deserialize<'de> for HoverEvent
impl<'de> Deserialize<'de> for HoverEvent
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
source§impl PartialEq for HoverEvent
impl PartialEq for HoverEvent
source§impl Serialize for HoverEvent
impl Serialize for HoverEvent
impl StructuralPartialEq for HoverEvent
Auto Trait Implementations§
impl Freeze for HoverEvent
impl RefUnwindSafe for HoverEvent
impl Send for HoverEvent
impl Sync for HoverEvent
impl Unpin for HoverEvent
impl UnwindSafe for HoverEvent
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)