pub enum TupleSchemaElement {
Show 28 variants Null, Bytes, String, Tuple(TupleSchema), Integer, Float, Double, Boolean, Uuid, Versionstamp, MaybeBytes, MaybeString, MaybeTuple(TupleSchema), MaybeInteger, MaybeFloat, MaybeDouble, MaybeBoolean, MaybeUuid, MaybeVersionstamp, ListOfBytes, ListOfString, ListOfTuple(TupleSchema), ListOfInteger, ListOfFloat, ListOfDouble, ListOfBoolean, ListOfUuid, ListOfVersionstamp,
}
Expand description

Represents the elements that a TupleSchema may contain.

Variants§

§

Null

Null value

§

Bytes

Bytes value

§

String

String value

§

Tuple(TupleSchema)

Nested Tuple value

§

Integer

Integer value

Note

Integer value can be a i8, i16, i32, i64 or BigInt.

§

Float

f32 value

§

Double

f64 value

§

Boolean

bool value

§

Uuid

Uuid value

§

Versionstamp

§

MaybeBytes

Optional Bytes value

§

MaybeString

Optional String value

§

MaybeTuple(TupleSchema)

Optional nested Tuple value

§

MaybeInteger

Optional integer value

Note

Integer value can be a i8, i16, i32, i64 or BigInt.

§

MaybeFloat

Optional f32 value

§

MaybeDouble

Optional f64 value

§

MaybeBoolean

Optional bool value

§

MaybeUuid

Optional Uuid value

§

MaybeVersionstamp

Optional Versionstamp value

§

ListOfBytes

List of Bytes value

§

ListOfString

List of String value

§

ListOfTuple(TupleSchema)

List of Tuple value

§

ListOfInteger

List of integer value

Note

Integer value can be a i8, i16, i32, i64 or BigInt.

§

ListOfFloat

List of f32 value

§

ListOfDouble

List of f64 value

§

ListOfBoolean

List of bool value

§

ListOfUuid

List of Uuid value

§

ListOfVersionstamp

List of Versionstamp value

Trait Implementations§

source§

impl Clone for TupleSchemaElement

source§

fn clone(&self) -> TupleSchemaElement

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 Debug for TupleSchemaElement

source§

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

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

impl PartialEq<TupleSchemaElement> for TupleSchemaElement

source§

fn eq(&self, other: &TupleSchemaElement) -> 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 StructuralPartialEq for TupleSchemaElement

Auto Trait Implementations§

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<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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<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.