Enum sea_schema::postgres::def::Type[][src]

pub enum Type {
Show 48 variants SmallInt, Integer, BigInt, Decimal(ArbitraryPrecisionNumericAttr), Numeric(ArbitraryPrecisionNumericAttr), Real, DoublePrecision, SmallSerial, Serial, BigSerial, Money, Varchar(StringAttr), Char(StringAttr), Text, Bytea, Timestamp(TimeAttr), TimestampWithTimeZone(TimeAttr), Date, Time(TimeAttr), TimeWithTimeZone(TimeAttr), Interval(IntervalAttr), Boolean, Point, Line, Lseg, Box, Path, Polygon, Circle, Cidr, Inet, MacAddr, MacAddr8, Bit(BitAttr), TsVector, TsQuery, Uuid, Xml, Json, Array, Int4Range, Int8Range, NumRange, TsRange, TsTzRange, DateRange, PgLsn, Unknown(String),
}
This is supported on crate features postgres and def only.
Expand description

All built-in types of PostgreSQL, excluding synonyms

Variants

SmallInt

16 bit integer

Integer

32 bit integer

BigInt

64 bit integer

Decimal

User-specified precision number

Tuple Fields of Decimal

0: ArbitraryPrecisionNumericAttr
Numeric

User-specified precision number

Tuple Fields of Numeric

0: ArbitraryPrecisionNumericAttr
Real

32 bit floating-point

DoublePrecision

64 bit floating-point

SmallSerial

16 bit autoincrementing integer

Serial

32 bit autoincrementing integer

BigSerial

64 bit autoincrementing integer

Money

Currency amount; 64 bits with a fractional precision determined by the database’s lc_monetary setting

Varchar

Variable-length character array with limit

Tuple Fields of Varchar

0: StringAttr
Char

Fixed-length character array; blank padded

Tuple Fields of Char

0: StringAttr
Text

Variable, unlimited length character array

Bytea

Variable length binary string

Timestamp

Date and time

Tuple Fields of Timestamp

0: TimeAttr
TimestampWithTimeZone

Tuple Fields of TimestampWithTimeZone

0: TimeAttr
Date

Date without time of day

Time

Time without date

Tuple Fields of Time

0: TimeAttr
TimeWithTimeZone

Tuple Fields of TimeWithTimeZone

0: TimeAttr
Interval

Time interval

Tuple Fields of Interval

0: IntervalAttr
Boolean

One byte boolean value

Point

Point on a plane

Line

Infinite line

Lseg

Finite line segment

Box

Rectangular box

Path

Closed or open path

Polygon

Polygon (similar to a closed path)

Circle

Circle composed of a center point and radius

Cidr

IPv4 and IPv6 networks

Inet

IPPv4 and IPv6 hosts and networks

MacAddr

6 byte MAC address

MacAddr8

8 byte MAC address in EUI-64 format

Bit

Fixed length bit string

Tuple Fields of Bit

0: BitAttr
TsVector

A sorted list of distincp lexemes which are words that have been normalized to merge different variants of the same word

TsQuery

A list of lexemes that are to be searched for, and can be combined using Boolean operators AND, OR, and NOT, as well as a phrase search operation

Uuid

A universally unique identifier as defined by RFC 4122, ISO 9834-8:2005, and related standards

Xml

XML data checked for well-formedness and with additonal support functions

Json

JSON data checked for validity and with additional functions

Array

Variable-length multidimensional array

Int4Range

Range of an integer

Int8Range

Range of a bigint

NumRange

Range of a numeric

TsRange

Range of a timestamp without time zone

TsTzRange

Range of a timestamp with time zone

DateRange

Range of a date

PgLsn

A log sequence number

Unknown

Tuple Fields of Unknown

0: String

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.