pub enum OneOf9<A, B, C, D, E, F, G, H, I>{
A(A),
B(B),
C(C),
D(D),
E(E),
F(F),
G(G),
H(H),
I(I),
}
Expand description
OneOf9
type.
This allows modelling of oneOf JSON schemas.
Variants§
A(A)
A
variant of OneOf9
B(B)
B
variant of OneOf9
C(C)
C
variant of OneOf9
D(D)
D
variant of OneOf9
E(E)
E
variant of OneOf9
F(F)
F
variant of OneOf9
G(G)
G
variant of OneOf9
H(H)
H
variant of OneOf9
I(I)
I
variant of OneOf9
Trait Implementations§
Source§impl<'b, A, B, C, D, E, F, G, H, I> Deserialize<'b> for OneOf9<A, B, C, D, E, F, G, H, I>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>,
impl<'b, A, B, C, D, E, F, G, H, I> Deserialize<'b> for OneOf9<A, B, C, D, E, F, G, H, I>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>,
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, G, H, I> LabelledGeneric for OneOf9<A, B, C, D, E, F, G, H, I>
impl<A, B, C, D, E, F, G, H, I> LabelledGeneric for OneOf9<A, B, C, D, E, F, G, H, I>
Source§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>>, 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>>, HEither<Variant<G, HCons<Field<(__, _0), G>, HNil>>, HEither<Variant<H, HCons<Field<(__, _0), H>, HNil>>, HEither<Variant<I, HCons<Field<(__, _0), I>, 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) -> Self
fn convert_from<Src>(src: Src) -> Self
Convert from one type to another using a type with the same
labelled generic representation
Source§fn sculpted_convert_from<A, Indices>(a: A) -> Self
fn sculpted_convert_from<A, Indices>(a: A) -> Self
👎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, G, H, I> PartialEq for OneOf9<A, B, C, D, E, F, G, H, I>
impl<A, B, C, D, E, F, G, H, I> PartialEq for OneOf9<A, B, C, D, E, F, G, H, I>
impl<A, B, C, D, E, F, G, H, I> StructuralPartialEq for OneOf9<A, B, C, D, E, F, G, H, I>
Auto Trait Implementations§
impl<A, B, C, D, E, F, G, H, I> Freeze for OneOf9<A, B, C, D, E, F, G, H, I>
impl<A, B, C, D, E, F, G, H, I> RefUnwindSafe for OneOf9<A, B, C, D, E, F, G, H, I>where
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
D: RefUnwindSafe,
E: RefUnwindSafe,
F: RefUnwindSafe,
G: RefUnwindSafe,
H: RefUnwindSafe,
I: RefUnwindSafe,
impl<A, B, C, D, E, F, G, H, I> Send for OneOf9<A, B, C, D, E, F, G, H, I>
impl<A, B, C, D, E, F, G, H, I> Sync for OneOf9<A, B, C, D, E, F, G, H, I>
impl<A, B, C, D, E, F, G, H, I> Unpin for OneOf9<A, B, C, D, E, F, G, H, I>
impl<A, B, C, D, E, F, G, H, I> UnwindSafe for OneOf9<A, B, C, D, E, F, G, H, I>where
A: UnwindSafe,
B: UnwindSafe,
C: UnwindSafe,
D: UnwindSafe,
E: UnwindSafe,
F: UnwindSafe,
G: UnwindSafe,
H: UnwindSafe,
I: 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,
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> FromJsonReader for Twhere
T: DeserializeOwned + Validate,
impl<T> FromJsonReader for Twhere
T: DeserializeOwned + Validate,
Source§impl<'de, T> FromJsonSlice<'de> for Twhere
T: Deserialize<'de> + Validate,
impl<'de, T> FromJsonSlice<'de> for Twhere
T: Deserialize<'de> + Validate,
Source§impl<'de, T> FromJsonStr<'de> for Twhere
T: Deserialize<'de> + Validate,
impl<'de, T> FromJsonStr<'de> for Twhere
T: Deserialize<'de> + Validate,
Source§impl<T> FromJsonValue for Twhere
T: DeserializeOwned + Validate,
impl<T> FromJsonValue for Twhere
T: DeserializeOwned + Validate,
Source§fn from_json_value(value: Value) -> Result<T, Error<Error>>
fn from_json_value(value: Value) -> Result<T, Error<Error>>
Convert from
serde_json::Value
. Read moreSource§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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<A> IntoLabelledGeneric for Awhere
A: LabelledGeneric,
impl<A> IntoLabelledGeneric for Awhere
A: LabelledGeneric,
Source§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
.