Enum edgedb_protocol::value::Value[][src]

pub enum Value {
Show 25 variants Nothing, Uuid(Uuid), Str(String), Bytes(Vec<u8>), Int16(i16), Int32(i32), Int64(i64), Float32(f32), Float64(f64), BigInt(BigInt), Decimal(Decimal), Bool(bool), Datetime(Datetime), LocalDatetime(LocalDatetime), LocalDate(LocalDate), LocalTime(LocalTime), Duration(Duration), RelativeDuration(RelativeDuration), Json(String), Set(Vec<Value>), Object { shape: ObjectShape, fields: Vec<Option<Value>>, }, Tuple(Vec<Value>), NamedTuple { shape: NamedTupleShape, fields: Vec<Value>, }, Array(Vec<Value>), Enum(EnumValue),
}

Variants

Nothing
Uuid(Uuid)

Tuple Fields of Uuid

0: Uuid
Str(String)

Tuple Fields of Str

0: String
Bytes(Vec<u8>)

Tuple Fields of Bytes

0: Vec<u8>
Int16(i16)

Tuple Fields of Int16

0: i16
Int32(i32)

Tuple Fields of Int32

0: i32
Int64(i64)

Tuple Fields of Int64

0: i64
Float32(f32)

Tuple Fields of Float32

0: f32
Float64(f64)

Tuple Fields of Float64

0: f64
BigInt(BigInt)

Tuple Fields of BigInt

0: BigInt
Decimal(Decimal)

Tuple Fields of Decimal

0: Decimal
Bool(bool)

Tuple Fields of Bool

0: bool
Datetime(Datetime)

Tuple Fields of Datetime

0: Datetime
LocalDatetime(LocalDatetime)

Tuple Fields of LocalDatetime

0: LocalDatetime
LocalDate(LocalDate)

Tuple Fields of LocalDate

0: LocalDate
LocalTime(LocalTime)

Tuple Fields of LocalTime

0: LocalTime
Duration(Duration)

Tuple Fields of Duration

0: Duration
RelativeDuration(RelativeDuration)

Tuple Fields of RelativeDuration

0: RelativeDuration
Json(String)

Tuple Fields of Json

0: String
Set(Vec<Value>)

Tuple Fields of Set

0: Vec<Value>
Object

Fields of Object

shape: ObjectShapefields: Vec<Option<Value>>
Tuple(Vec<Value>)

Tuple Fields of Tuple

0: Vec<Value>
NamedTuple

Fields of NamedTuple

shape: NamedTupleShapefields: Vec<Value>
Array(Vec<Value>)

Tuple Fields of Array

0: Vec<Value>
Enum(EnumValue)

Tuple Fields of Enum

0: EnumValue

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.