pub enum OneOf3<A: Serialize + Debug, B: Serialize + Debug, C: Serialize + Debug> {
Left(A),
Middle(B),
Right(C),
}
Variants§
Implementations§
Trait Implementations§
Source§impl<A: Debug + Serialize + Debug, B: Debug + Serialize + Debug, C: Debug + Serialize + Debug> Debug for OneOf3<A, B, C>
impl<A: Debug + Serialize + Debug, B: Debug + Serialize + Debug, C: Debug + Serialize + Debug> Debug for OneOf3<A, B, C>
Source§impl<'de, A, B, C> Deserialize<'de> for OneOf3<A, B, C>where
A: Deserialize<'de> + Serialize + Debug,
B: Deserialize<'de> + Serialize + Debug,
C: Deserialize<'de> + Serialize + Debug,
impl<'de, A, B, C> Deserialize<'de> for OneOf3<A, B, C>where
A: Deserialize<'de> + Serialize + Debug,
B: Deserialize<'de> + Serialize + Debug,
C: Deserialize<'de> + Serialize + Debug,
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<A, B, C> Freeze for OneOf3<A, B, C>
impl<A, B, C> RefUnwindSafe for OneOf3<A, B, C>
impl<A, B, C> Send for OneOf3<A, B, C>
impl<A, B, C> Sync for OneOf3<A, B, C>
impl<A, B, C> Unpin for OneOf3<A, B, C>
impl<A, B, C> UnwindSafe for OneOf3<A, B, C>
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