pub enum ClickEvent {
OpenUrl {
url: String,
},
OpenFile {
path: String,
},
RunCommand {
command: String,
},
SuggestCommand {
command: String,
},
ShowDialog {},
ChangePage {
page: i32,
},
CopyToClipboard {
value: String,
},
Custom {
id: String,
payload: Nbt,
},
}Variants§
Trait Implementations§
Source§impl Clone for ClickEvent
impl Clone for ClickEvent
Source§fn clone(&self) -> ClickEvent
fn clone(&self) -> ClickEvent
Returns a duplicate 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 ClickEvent
impl Debug for ClickEvent
Source§impl Deserialize for ClickEvent
Available on crate feature simdnbt only.
impl Deserialize for ClickEvent
Available on crate feature
simdnbt only.Source§impl PartialEq for ClickEvent
impl PartialEq for ClickEvent
Source§impl Serialize for ClickEvent
impl Serialize for ClickEvent
Source§impl Serialize for ClickEvent
Available on crate feature simdnbt only.
impl Serialize for ClickEvent
Available on crate feature
simdnbt only.fn to_compound(self) -> NbtCompound
fn to_nbt(self) -> BaseNbt
impl StructuralPartialEq for ClickEvent
Auto Trait Implementations§
impl Freeze for ClickEvent
impl RefUnwindSafe for ClickEvent
impl Send for ClickEvent
impl Sync for ClickEvent
impl Unpin for ClickEvent
impl UnwindSafe for ClickEvent
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