[][src]Enum swagger::OneOf2

pub enum OneOf2<A, B> where
    A: PartialEq,
    B: PartialEq
{ A(A), B(B), }

$t

Variants

A(A)

$i type

B(B)

$i type

Trait Implementations

impl<A: Clone, B: Clone> Clone for OneOf2<A, B> where
    A: PartialEq,
    B: PartialEq
[src]

impl<A: Debug, B: Debug> Debug for OneOf2<A, B> where
    A: PartialEq,
    B: PartialEq
[src]

impl<'b, A, B> Deserialize<'b> for OneOf2<A, B> where
    A: PartialEq + for<'a> Deserialize<'a>,
    B: PartialEq + for<'a> Deserialize<'a>, 
[src]

impl<A, B> FromStr for OneOf2<A, B> where
    A: PartialEq + FromStr,
    B: PartialEq + FromStr
[src]

type Err = &'static str

The associated error which can be returned from parsing.

impl<A: PartialEq, B: PartialEq> PartialEq<OneOf2<A, B>> for OneOf2<A, B> where
    A: PartialEq,
    B: PartialEq
[src]

impl<A, B> Serialize for OneOf2<A, B> where
    A: PartialEq + Serialize,
    B: PartialEq + Serialize
[src]

impl<A, B> StructuralPartialEq for OneOf2<A, B> where
    A: PartialEq,
    B: PartialEq
[src]

impl<A, B> ToString for OneOf2<A, B> where
    A: PartialEq + ToString,
    B: PartialEq + ToString
[src]

Auto Trait Implementations

impl<A, B> RefUnwindSafe for OneOf2<A, B> where
    A: RefUnwindSafe,
    B: RefUnwindSafe
[src]

impl<A, B> Send for OneOf2<A, B> where
    A: Send,
    B: Send
[src]

impl<A, B> Sync for OneOf2<A, B> where
    A: Sync,
    B: Sync
[src]

impl<A, B> Unpin for OneOf2<A, B> where
    A: Unpin,
    B: Unpin
[src]

impl<A, B> UnwindSafe for OneOf2<A, B> where
    A: UnwindSafe,
    B: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.