Enum minecraft_json::minecraft::text::ValueOrContents [−][src]
pub enum ValueOrContents<V, C> { Value(V), Contents(C), }
Expand description
Part of HoverEvent
.
Variants
The deprecated value
field.
The recommended contents
field.
Trait Implementations
impl<'de, V, C> Deserialize<'de> for ValueOrContents<V, C> where
V: Deserialize<'de>,
C: Deserialize<'de>,
[src]
impl<'de, V, C> Deserialize<'de> for ValueOrContents<V, C> where
V: Deserialize<'de>,
C: Deserialize<'de>,
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.