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