Skip to main content

Ty

Enum Ty 

Source
pub enum Ty {
Show 172 variants Bool, Bytea, Char, Name, Int8, Int2, Int2Vector, Int4, Regproc, Text, Oid, Tid, Xid, Cid, OidVector, PgDdlCommand, Json, Xml, XmlArray, PgNodeTree, JsonArray, TableAmHandler, Xid8Array, IndexAmHandler, Point, Lseg, Path, Box, Polygon, Line, LineArray, Cidr, CidrArray, Float4, Float8, Unknown, Circle, CircleArray, Macaddr8, Macaddr8Array, Money, MoneyArray, Macaddr, Inet, BoolArray, ByteaArray, CharArray, NameArray, Int2Array, Int2VectorArray, Int4Array, RegprocArray, TextArray, TidArray, XidArray, CidArray, OidVectorArray, BpcharArray, VarcharArray, Int8Array, PointArray, LsegArray, PathArray, BoxArray, Float4Array, Float8Array, PolygonArray, OidArray, Aclitem, AclitemArray, MacaddrArray, InetArray, Bpchar, Varchar, Date, Time, Timestamp, TimestampArray, DateArray, TimeArray, Timestamptz, TimestamptzArray, Interval, IntervalArray, NumericArray, CstringArray, Timetz, TimetzArray, Bit, BitArray, Varbit, VarbitArray, Numeric, Refcursor, RefcursorArray, Regprocedure, Regoper, Regoperator, Regclass, Regtype, RegprocedureArray, RegoperArray, RegoperatorArray, RegclassArray, RegtypeArray, Record, Cstring, Any, Anyarray, Void, Trigger, LanguageHandler, Internal, Anyelement, RecordArray, Anynonarray, TxidSnapshotArray, Uuid, UuidArray, TxidSnapshot, FdwHandler, PgLsn, PgLsnArray, TsmHandler, PgNdistinct, PgDependencies, Anyenum, TsVector, Tsquery, GtsVector, TsVectorArray, GtsVectorArray, TsqueryArray, Regconfig, RegconfigArray, Regdictionary, RegdictionaryArray, Jsonb, JsonbArray, AnyRange, EventTrigger, Int4Range, Int4RangeArray, NumRange, NumRangeArray, TsRange, TsRangeArray, TstzRange, TstzRangeArray, DateRange, DateRangeArray, Int8Range, Int8RangeArray, Jsonpath, JsonpathArray, Regnamespace, RegnamespaceArray, Regrole, RegroleArray, Regcollation, RegcollationArray, PgBrinBloomSummary, PgBrinMinmaxMultiSummary, PgMcvList, PgSnapshot, PgSnapshotArray, Xid8, Anycompatible, Anycompatiblearray, Anycompatiblenonarray, AnycompatibleRange, Custom(u32),
}
Available on crate features database and postgres only.
Expand description

Type

Variants§

§

Bool

Bool

§

Bytea

Bytea

§

Char

Char

§

Name

Name

§

Int8

Int8

§

Int2

Int2

§

Int2Vector

Int2Vector

§

Int4

Int4

§

Regproc

Regproc

§

Text

Text

§

Oid

Oid

§

Tid

Tid

§

Xid

Xid

§

Cid

Cid

§

OidVector

OidVector

§

PgDdlCommand

PgDdlCommand

§

Json

Json

§

Xml

Xml

§

XmlArray

XmlArray

§

PgNodeTree

PgNodeTree

§

JsonArray

JsonArray

§

TableAmHandler

TableAmHandler

§

Xid8Array

Xid8Array

§

IndexAmHandler

IndexAmHandler

§

Point

Point

§

Lseg

Lseg

§

Path

Path

§

Box

Box

§

Polygon

Polygon

§

Line

Line

§

LineArray

LineArray

§

Cidr

Cidr

§

CidrArray

CidrArray

§

Float4

Float4

§

Float8

Float8

§

Unknown

Unknown

§

Circle

Circle

§

CircleArray

CircleArray

§

Macaddr8

Macaddr8

§

Macaddr8Array

Macaddr8Array

§

Money

Money

§

MoneyArray

MoneyArray

§

Macaddr

Macaddr

§

Inet

Inet

§

BoolArray

BoolArray

§

ByteaArray

ByteaArray

§

CharArray

CharArray

§

NameArray

NameArray

§

Int2Array

Int2Array

§

Int2VectorArray

Int2VectorArray

§

Int4Array

Int4Array

§

RegprocArray

RegprocArray

§

TextArray

TextArray

§

TidArray

TidArray

§

XidArray

XidArray

§

CidArray

CidArray

§

OidVectorArray

OidVectorArray

§

BpcharArray

BpcharArray

§

VarcharArray

VarcharArray

§

Int8Array

Int8Array

§

PointArray

PointArray

§

LsegArray

LsegArray

§

PathArray

PathArray

§

BoxArray

BoxArray

§

Float4Array

Float4Array

§

Float8Array

Float8Array

§

PolygonArray

PolygonArray

§

OidArray

OidArray

§

Aclitem

Aclitem

§

AclitemArray

AclitemArray

§

MacaddrArray

MacaddrArray

§

InetArray

InetArray

§

Bpchar

Bpchar

§

Varchar

Varchar

§

Date

Date

§

Time

Time

§

Timestamp

Timestamp

§

TimestampArray

TimestampArray

§

DateArray

DateArray

§

TimeArray

TimeArray

§

Timestamptz

Timestamptz

§

TimestamptzArray

TimestamptzArray

§

Interval

Interval

§

IntervalArray

IntervalArray

§

NumericArray

NumericArray

§

CstringArray

CstringArray

§

Timetz

Timetz

§

TimetzArray

TimetzArray

§

Bit

Bit

§

BitArray

BitArray

§

Varbit

Varbit

§

VarbitArray

VarbitArray

§

Numeric

Numeric

§

Refcursor

Refcursor

§

RefcursorArray

RefcursorArray

§

Regprocedure

Regprocedure

§

Regoper

Regoper

§

Regoperator

Regoperator

§

Regclass

Regclass

§

Regtype

Regtype

§

RegprocedureArray

RegprocedureArray

§

RegoperArray

RegoperArray

§

RegoperatorArray

RegoperatorArray

§

RegclassArray

RegclassArray

§

RegtypeArray

RegtypeArray

§

Record

Record

§

Cstring

Cstring

§

Any

Any

§

Anyarray

Anyarray

§

Void

Void

§

Trigger

Trigger

§

LanguageHandler

LanguageHandler

§

Internal

Internal

§

Anyelement

Anyelement

§

RecordArray

RecordArray

§

Anynonarray

Anynonarray

§

TxidSnapshotArray

TxidSnapshotArray

§

Uuid

Uuid

§

UuidArray

UuidArray

§

TxidSnapshot

TxidSnapshot

§

FdwHandler

FdwHandler

§

PgLsn

PgLsn

§

PgLsnArray

PgLsnArray

§

TsmHandler

TsmHandler

§

PgNdistinct

PgNdistinct

§

PgDependencies

PgDependencies

§

Anyenum

Anyenum

§

TsVector

TsVector

§

Tsquery

Tsquery

§

GtsVector

GtsVector

§

TsVectorArray

TsVectorArray

§

GtsVectorArray

GtsVectorArray

§

TsqueryArray

TsqueryArray

§

Regconfig

Regconfig

§

RegconfigArray

RegconfigArray

§

Regdictionary

Regdictionary

§

RegdictionaryArray

RegdictionaryArray

§

Jsonb

Jsonb

§

JsonbArray

JsonbArray

§

AnyRange

AnyRange

§

EventTrigger

EventTrigger

§

Int4Range

Int4Range

§

Int4RangeArray

Int4RangeArray

§

NumRange

NumRange

§

NumRangeArray

NumRangeArray

§

TsRange

TsRange

§

TsRangeArray

TsRangeArray

§

TstzRange

TstzRange

§

TstzRangeArray

TstzRangeArray

§

DateRange

DateRange

§

DateRangeArray

DateRangeArray

§

Int8Range

Int8Range

§

Int8RangeArray

Int8RangeArray

§

Jsonpath

Jsonpath

§

JsonpathArray

JsonpathArray

§

Regnamespace

Regnamespace

§

RegnamespaceArray

RegnamespaceArray

§

Regrole

Regrole

§

RegroleArray

RegroleArray

§

Regcollation

Regcollation

§

RegcollationArray

RegcollationArray

§

PgBrinBloomSummary

PgBrinBloomSummary

§

PgBrinMinmaxMultiSummary

PgBrinMinmaxMultiSummary

§

PgMcvList

PgMcvList

§

PgSnapshot

PgSnapshot

§

PgSnapshotArray

PgSnapshotArray

§

Xid8

Xid8

§

Anycompatible

Anycompatible

§

Anycompatiblearray

Anycompatiblearray

§

Anycompatiblenonarray

Anycompatiblenonarray

§

AnycompatibleRange

AnycompatibleRange

§

Custom(u32)

Custom

Trait Implementations§

Source§

impl Clone for Ty

Source§

fn clone(&self) -> Ty

Returns a duplicate 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 Ty

Source§

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

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

impl From<Ty> for u32

Source§

fn from(from: Ty) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Ty

Source§

fn eq(&self, other: &Ty) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Ty

Source§

impl Eq for Ty

Source§

impl StructuralPartialEq for Ty

Auto Trait Implementations§

§

impl Freeze for Ty

§

impl RefUnwindSafe for Ty

§

impl Send for Ty

§

impl Sync for Ty

§

impl Unpin for Ty

§

impl UnwindSafe for Ty

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more