Enum minecraft_json::minecraft::common::Either [−][src]
pub enum Either<L, R> { Left(L), Right(R), }
Expand description
Union of two JSON deserializable objects.
Variants
Left branch. Defaulted.
Right branch.
Trait Implementations
impl<'de, L, R> Deserialize<'de> for Either<L, R> where
L: Deserialize<'de>,
R: Deserialize<'de>,
[src]
impl<'de, L, R> Deserialize<'de> for Either<L, R> where
L: Deserialize<'de>,
R: 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