pub enum OneOf6<A, B, C, D, E, F>where
A: PartialEq,
B: PartialEq,
C: PartialEq,
D: PartialEq,
E: PartialEq,
F: PartialEq,{
A(A),
B(B),
C(C),
D(D),
E(E),
F(F),
}
Expand description
OneOf6
type.
This allows modelling of oneOf JSON schemas.
Variants§
A(A)
A
variant of OneOf6
B(B)
B
variant of OneOf6
C(C)
C
variant of OneOf6
D(D)
D
variant of OneOf6
E(E)
E
variant of OneOf6
F(F)
F
variant of OneOf6
Trait Implementations§
source§impl<A, B, C, D, E, F> Clone for OneOf6<A, B, C, D, E, F>where
A: PartialEq + Clone,
B: PartialEq + Clone,
C: PartialEq + Clone,
D: PartialEq + Clone,
E: PartialEq + Clone,
F: PartialEq + Clone,
impl<A, B, C, D, E, F> Clone for OneOf6<A, B, C, D, E, F>where A: PartialEq + Clone, B: PartialEq + Clone, C: PartialEq + Clone, D: PartialEq + Clone, E: PartialEq + Clone, F: PartialEq + Clone,
source§impl<A, B, C, D, E, F> Debug for OneOf6<A, B, C, D, E, F>where
A: PartialEq + Debug,
B: PartialEq + Debug,
C: PartialEq + Debug,
D: PartialEq + Debug,
E: PartialEq + Debug,
F: PartialEq + Debug,
impl<A, B, C, D, E, F> Debug for OneOf6<A, B, C, D, E, F>where A: PartialEq + Debug, B: PartialEq + Debug, C: PartialEq + Debug, D: PartialEq + Debug, E: PartialEq + Debug, F: PartialEq + Debug,
source§impl<'b, A, B, C, D, E, F> Deserialize<'b> for OneOf6<A, B, C, D, E, F>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>,
impl<'b, A, B, C, D, E, F> Deserialize<'b> for OneOf6<A, B, C, D, E, F>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>,
source§fn deserialize<De: Deserializer<'b>>(
deserializer: De
) -> Result<Self, De::Error>
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> FromStr for OneOf6<A, B, C, D, E, F>where
A: PartialEq + FromStr,
B: PartialEq + FromStr,
C: PartialEq + FromStr,
D: PartialEq + FromStr,
E: PartialEq + FromStr,
F: PartialEq + FromStr,
impl<A, B, C, D, E, F> FromStr for OneOf6<A, B, C, D, E, F>where A: PartialEq + FromStr, B: PartialEq + FromStr, C: PartialEq + FromStr, D: PartialEq + FromStr, E: PartialEq + FromStr, F: PartialEq + FromStr,
source§impl<A, B, C, D, E, F> LabelledGeneric for OneOf6<A, B, C, D, E, F>where
A: PartialEq,
B: PartialEq,
C: PartialEq,
D: PartialEq,
E: PartialEq,
F: PartialEq,
impl<A, B, C, D, E, F> LabelledGeneric for OneOf6<A, B, C, D, E, F>where A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq, E: PartialEq, F: 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>>, Void>>>>>>
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>>, Void>>>>>>
The labelled generic representation type.
source§fn from(repr: Self::Repr) -> Self
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,
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>,
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>,
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 moresource§impl<A, B, C, D, E, F> PartialEq<OneOf6<A, B, C, D, E, F>> for OneOf6<A, B, C, D, E, F>where
A: PartialEq + PartialEq,
B: PartialEq + PartialEq,
C: PartialEq + PartialEq,
D: PartialEq + PartialEq,
E: PartialEq + PartialEq,
F: PartialEq + PartialEq,
impl<A, B, C, D, E, F> PartialEq<OneOf6<A, B, C, D, E, F>> for OneOf6<A, B, C, D, E, F>where A: PartialEq + PartialEq, B: PartialEq + PartialEq, C: PartialEq + PartialEq, D: PartialEq + PartialEq, E: PartialEq + PartialEq, F: PartialEq + PartialEq,
source§impl<A, B, C, D, E, F> Serialize for OneOf6<A, B, C, D, E, F>where
A: PartialEq + Serialize,
B: PartialEq + Serialize,
C: PartialEq + Serialize,
D: PartialEq + Serialize,
E: PartialEq + Serialize,
F: PartialEq + Serialize,
impl<A, B, C, D, E, F> Serialize for OneOf6<A, B, C, D, E, F>where A: PartialEq + Serialize, B: PartialEq + Serialize, C: PartialEq + Serialize, D: PartialEq + Serialize, E: PartialEq + Serialize, F: PartialEq + Serialize,
source§impl<A, B, C, D, E, F> ToString for OneOf6<A, B, C, D, E, F>where
A: PartialEq + ToString,
B: PartialEq + ToString,
C: PartialEq + ToString,
D: PartialEq + ToString,
E: PartialEq + ToString,
F: PartialEq + ToString,
impl<A, B, C, D, E, F> ToString for OneOf6<A, B, C, D, E, F>where A: PartialEq + ToString, B: PartialEq + ToString, C: PartialEq + ToString, D: PartialEq + ToString, E: PartialEq + ToString, F: PartialEq + ToString,
impl<A, B, C, D, E, F> StructuralPartialEq for OneOf6<A, B, C, D, E, F>where A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq, E: PartialEq, F: PartialEq,
Auto Trait Implementations§
impl<A, B, C, D, E, F> RefUnwindSafe for OneOf6<A, B, C, D, E, F>where A: RefUnwindSafe, B: RefUnwindSafe, C: RefUnwindSafe, D: RefUnwindSafe, E: RefUnwindSafe, F: RefUnwindSafe,
impl<A, B, C, D, E, F> Send for OneOf6<A, B, C, D, E, F>where A: Send, B: Send, C: Send, D: Send, E: Send, F: Send,
impl<A, B, C, D, E, F> Sync for OneOf6<A, B, C, D, E, F>where A: Sync, B: Sync, C: Sync, D: Sync, E: Sync, F: Sync,
impl<A, B, C, D, E, F> Unpin for OneOf6<A, B, C, D, E, F>where A: Unpin, B: Unpin, C: Unpin, D: Unpin, E: Unpin, F: Unpin,
impl<A, B, C, D, E, F> UnwindSafe for OneOf6<A, B, C, D, E, F>where A: UnwindSafe, B: UnwindSafe, C: UnwindSafe, D: UnwindSafe, E: UnwindSafe, F: 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<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<A> IntoLabelledGeneric for Awhere
A: LabelledGeneric,
impl<A> IntoLabelledGeneric for Awhere A: LabelledGeneric,
§type Repr = <A as LabelledGeneric>::Repr
type Repr = <A as LabelledGeneric>::Repr
The labelled generic representation type.
source§fn into(self) -> <A as IntoLabelledGeneric>::Repr
fn into(self) -> <A as IntoLabelledGeneric>::Repr
Convert a value to its representation type
Repr
.