pub enum UnionTypeExample {
StringExample(StringExample),
Set(BTreeSet<String>),
ThisFieldIsAnInteger(i32),
AlsoAnInteger(i32),
If(i32),
New(i32),
Interface(i32),
Unknown(Unknown),
}
Variants§
StringExample(StringExample)
Docs for when UnionTypeExample is of type StringExample.
Set(BTreeSet<String>)
ThisFieldIsAnInteger(i32)
AlsoAnInteger(i32)
If(i32)
New(i32)
Interface(i32)
Unknown(Unknown)
An unknown variant.
Trait Implementations§
source§impl Clone for UnionTypeExample
impl Clone for UnionTypeExample
source§fn clone(&self) -> UnionTypeExample
fn clone(&self) -> UnionTypeExample
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UnionTypeExample
impl Debug for UnionTypeExample
source§impl<'de> Deserialize<'de> for UnionTypeExample
impl<'de> Deserialize<'de> for UnionTypeExample
source§fn deserialize<D>(d: D) -> Result<UnionTypeExample, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<UnionTypeExample, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for UnionTypeExample
impl Hash for UnionTypeExample
source§impl Ord for UnionTypeExample
impl Ord for UnionTypeExample
source§fn cmp(&self, other: &UnionTypeExample) -> Ordering
fn cmp(&self, other: &UnionTypeExample) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for UnionTypeExample
impl PartialEq for UnionTypeExample
source§fn eq(&self, other: &UnionTypeExample) -> bool
fn eq(&self, other: &UnionTypeExample) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for UnionTypeExample
impl PartialOrd for UnionTypeExample
source§fn partial_cmp(&self, other: &UnionTypeExample) -> Option<Ordering>
fn partial_cmp(&self, other: &UnionTypeExample) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for UnionTypeExample
impl Serialize for UnionTypeExample
impl Eq for UnionTypeExample
impl StructuralPartialEq for UnionTypeExample
Auto Trait Implementations§
impl Freeze for UnionTypeExample
impl RefUnwindSafe for UnionTypeExample
impl Send for UnionTypeExample
impl Sync for UnionTypeExample
impl Unpin for UnionTypeExample
impl UnwindSafe for UnionTypeExample
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.