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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
 
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
 
fn into_request(self) -> Request<T>
Wrap the input message 
T in a tonic::Request