Enum swagger::OneOf14

source ·
pub enum OneOf14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>where
    A: PartialEq,
    B: PartialEq,
    C: PartialEq,
    D: PartialEq,
    E: PartialEq,
    F: PartialEq,
    G: PartialEq,
    H: PartialEq,
    I: PartialEq,
    J: PartialEq,
    K: PartialEq,
    L: PartialEq,
    M: PartialEq,
    N: PartialEq,{
Show 14 variants A(A), B(B), C(C), D(D), E(E), F(F), G(G), H(H), I(I), J(J), K(K), L(L), M(M), N(N),
}
Expand description

OneOf14 type.

This allows modelling of oneOf JSON schemas.

Variants§

§

A(A)

A variant of OneOf14

§

B(B)

B variant of OneOf14

§

C(C)

C variant of OneOf14

§

D(D)

D variant of OneOf14

§

E(E)

E variant of OneOf14

§

F(F)

F variant of OneOf14

§

G(G)

G variant of OneOf14

§

H(H)

H variant of OneOf14

§

I(I)

I variant of OneOf14

§

J(J)

J variant of OneOf14

§

K(K)

K variant of OneOf14

§

L(L)

L variant of OneOf14

§

M(M)

M variant of OneOf14

§

N(N)

N variant of OneOf14

Trait Implementations§

source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> Clone for OneOf14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>where A: PartialEq + Clone, B: PartialEq + Clone, C: PartialEq + Clone, D: PartialEq + Clone, E: PartialEq + Clone, F: PartialEq + Clone, G: PartialEq + Clone, H: PartialEq + Clone, I: PartialEq + Clone, J: PartialEq + Clone, K: PartialEq + Clone, L: PartialEq + Clone, M: PartialEq + Clone, N: PartialEq + Clone,

source§

fn clone(&self) -> OneOf14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> Debug for OneOf14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>where A: PartialEq + Debug, B: PartialEq + Debug, C: PartialEq + Debug, D: PartialEq + Debug, E: PartialEq + Debug, F: PartialEq + Debug, G: PartialEq + Debug, H: PartialEq + Debug, I: PartialEq + Debug, J: PartialEq + Debug, K: PartialEq + Debug, L: PartialEq + Debug, M: PartialEq + Debug, N: PartialEq + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'b, A, B, C, D, E, F, G, H, I, J, K, L, M, N> Deserialize<'b> for OneOf14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>where A: PartialEq + for<'a> Deserialize<'a>, B: PartialEq + for<'a> Deserialize<'a>, C: PartialEq + for<'a> Deserialize<'a>, D: PartialEq + for<'a> Deserialize<'a>, E: PartialEq + for<'a> Deserialize<'a>, F: PartialEq + for<'a> Deserialize<'a>, G: PartialEq + for<'a> Deserialize<'a>, H: PartialEq + for<'a> Deserialize<'a>, I: PartialEq + for<'a> Deserialize<'a>, J: PartialEq + for<'a> Deserialize<'a>, K: PartialEq + for<'a> Deserialize<'a>, L: PartialEq + for<'a> Deserialize<'a>, M: PartialEq + for<'a> Deserialize<'a>, N: PartialEq + for<'a> Deserialize<'a>,

source§

fn deserialize<De: Deserializer<'b>>( deserializer: De ) -> Result<Self, De::Error>

Deserialize this value from the given Serde deserializer. Read more
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> FromStr for OneOf14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>where A: PartialEq + FromStr, B: PartialEq + FromStr, C: PartialEq + FromStr, D: PartialEq + FromStr, E: PartialEq + FromStr, F: PartialEq + FromStr, G: PartialEq + FromStr, H: PartialEq + FromStr, I: PartialEq + FromStr, J: PartialEq + FromStr, K: PartialEq + FromStr, L: PartialEq + FromStr, M: PartialEq + FromStr, N: PartialEq + FromStr,

§

type Err = &'static str

The associated error which can be returned from parsing.
source§

fn from_str(x: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> LabelledGeneric for OneOf14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>where A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq, E: PartialEq, F: PartialEq, G: PartialEq, H: PartialEq, I: PartialEq, J: PartialEq, K: PartialEq, L: PartialEq, M: PartialEq, N: PartialEq,

§

type Repr = HEither<Variant<A, HCons<Field<(__, _0), A>, HNil>>, HEither<Variant<B, HCons<Field<(__, _0), B>, HNil>>, HEither<Variant<C, HCons<Field<(__, _0), C>, HNil>>, HEither<Variant<D, HCons<Field<(__, _0), D>, HNil>>, HEither<Variant<E, HCons<Field<(__, _0), E>, HNil>>, HEither<Variant<F, HCons<Field<(__, _0), F>, HNil>>, HEither<Variant<G, HCons<Field<(__, _0), G>, HNil>>, HEither<Variant<H, HCons<Field<(__, _0), H>, HNil>>, HEither<Variant<I, HCons<Field<(__, _0), I>, HNil>>, HEither<Variant<J, HCons<Field<(__, _0), J>, HNil>>, HEither<Variant<K, HCons<Field<(__, _0), K>, HNil>>, HEither<Variant<L, HCons<Field<(__, _0), L>, HNil>>, HEither<Variant<M, HCons<Field<(__, _0), M>, HNil>>, HEither<Variant<N, HCons<Field<(__, _0), N>, HNil>>, Void>>>>>>>>>>>>>>

The labelled generic representation type.
source§

fn into(self) -> Self::Repr

Convert a value to its representation type Repr.
source§

fn from(repr: Self::Repr) -> Self

Convert a value’s labelled representation type Repr to the values’s type.
source§

fn convert_from<Src>(src: Src) -> Selfwhere Src: LabelledGeneric<Repr = Self::Repr>, Self: Sized,

Convert from one type to another using a type with the same labelled generic representation
source§

fn sculpted_convert_from<A, Indices>(a: A) -> Selfwhere A: LabelledGeneric, Self: Sized, <A as LabelledGeneric>::Repr: Sculptor<Self::Repr, Indices>,

👎Deprecated: obsolete, transform_from instead
Converts from another type A into Self assuming that A and Self have labelled generic representations that can be sculpted into each other. Read more
source§

fn transform_from<Src, Indices>(src: Src) -> Selfwhere Src: LabelledGeneric, Self: Sized, <Src as LabelledGeneric>::Repr: Sculptor<Self::Repr, Indices>,

Converts from another type Src into Self assuming that Src and Self have labelled generic representations that can be sculpted into each other. Read more
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> PartialEq<OneOf14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>> for OneOf14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>where A: PartialEq + PartialEq, B: PartialEq + PartialEq, C: PartialEq + PartialEq, D: PartialEq + PartialEq, E: PartialEq + PartialEq, F: PartialEq + PartialEq, G: PartialEq + PartialEq, H: PartialEq + PartialEq, I: PartialEq + PartialEq, J: PartialEq + PartialEq, K: PartialEq + PartialEq, L: PartialEq + PartialEq, M: PartialEq + PartialEq, N: PartialEq + PartialEq,

source§

fn eq(&self, other: &OneOf14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> Serialize for OneOf14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>where A: PartialEq + Serialize, B: PartialEq + Serialize, C: PartialEq + Serialize, D: PartialEq + Serialize, E: PartialEq + Serialize, F: PartialEq + Serialize, G: PartialEq + Serialize, H: PartialEq + Serialize, I: PartialEq + Serialize, J: PartialEq + Serialize, K: PartialEq + Serialize, L: PartialEq + Serialize, M: PartialEq + Serialize, N: PartialEq + Serialize,

source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> ToString for OneOf14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>where A: PartialEq + ToString, B: PartialEq + ToString, C: PartialEq + ToString, D: PartialEq + ToString, E: PartialEq + ToString, F: PartialEq + ToString, G: PartialEq + ToString, H: PartialEq + ToString, I: PartialEq + ToString, J: PartialEq + ToString, K: PartialEq + ToString, L: PartialEq + ToString, M: PartialEq + ToString, N: PartialEq + ToString,

source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> StructuralPartialEq for OneOf14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>where A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq, E: PartialEq, F: PartialEq, G: PartialEq, H: PartialEq, I: PartialEq, J: PartialEq, K: PartialEq, L: PartialEq, M: PartialEq, N: PartialEq,

Auto Trait Implementations§

§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> RefUnwindSafe for OneOf14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>where A: RefUnwindSafe, B: RefUnwindSafe, C: RefUnwindSafe, D: RefUnwindSafe, E: RefUnwindSafe, F: RefUnwindSafe, G: RefUnwindSafe, H: RefUnwindSafe, I: RefUnwindSafe, J: RefUnwindSafe, K: RefUnwindSafe, L: RefUnwindSafe, M: RefUnwindSafe, N: RefUnwindSafe,

§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> Send for OneOf14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>where A: Send, B: Send, C: Send, D: Send, E: Send, F: Send, G: Send, H: Send, I: Send, J: Send, K: Send, L: Send, M: Send, N: Send,

§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> Sync for OneOf14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>where A: Sync, B: Sync, C: Sync, D: Sync, E: Sync, F: Sync, G: Sync, H: Sync, I: Sync, J: Sync, K: Sync, L: Sync, M: Sync, N: Sync,

§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> Unpin for OneOf14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>where A: Unpin, B: Unpin, C: Unpin, D: Unpin, E: Unpin, F: Unpin, G: Unpin, H: Unpin, I: Unpin, J: Unpin, K: Unpin, L: Unpin, M: Unpin, N: Unpin,

§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> UnwindSafe for OneOf14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>where A: UnwindSafe, B: UnwindSafe, C: UnwindSafe, D: UnwindSafe, E: UnwindSafe, F: UnwindSafe, G: UnwindSafe, H: UnwindSafe, I: UnwindSafe, J: UnwindSafe, K: UnwindSafe, L: UnwindSafe, M: UnwindSafe, N: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices

§

type Remainder = Choices

source§

fn subset( self ) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>

Extract a subset of the possible types in a coproduct (or get the remaining possibilities) Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<A> IntoLabelledGeneric for Awhere A: LabelledGeneric,

§

type Repr = <A as LabelledGeneric>::Repr

The labelled generic representation type.
source§

fn into(self) -> <A as IntoLabelledGeneric>::Repr

Convert a value to its representation type Repr.
source§

impl<T, U, I> LiftInto<U, I> for Twhere U: LiftFrom<T, I>,

source§

fn lift_into(self) -> U

Performs the indexed conversion.
source§

impl<Source> Sculptor<HNil, HNil> for Source

§

type Remainder = Source

source§

fn sculpt(self) -> (HNil, <Source as Sculptor<HNil, HNil>>::Remainder)

Consumes the current HList and returns an HList with the requested shape. Read more
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Typeable for Twhere T: Any,

§

fn get_type(&self) -> TypeId

Get the TypeId of this object.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,