Enum psl::builtin_connectors::PostgresType
source · pub enum PostgresType {
Show 26 variants
SmallInt,
Integer,
BigInt,
Decimal(Option<(u32, u32)>),
Money,
Inet,
Oid,
Citext,
Real,
DoublePrecision,
VarChar(Option<u32>),
Char(Option<u32>),
Text,
ByteA,
Timestamp(Option<u32>),
Timestamptz(Option<u32>),
Date,
Time(Option<u32>),
Timetz(Option<u32>),
Boolean,
Bit(Option<u32>),
VarBit(Option<u32>),
Uuid,
Xml,
Json,
JsonB,
}
Variants§
SmallInt
Integer
BigInt
Decimal(Option<(u32, u32)>)
Money
Inet
Oid
Citext
Real
DoublePrecision
VarChar(Option<u32>)
Char(Option<u32>)
Text
ByteA
Timestamp(Option<u32>)
Timestamptz(Option<u32>)
Date
Time(Option<u32>)
Timetz(Option<u32>)
Boolean
Bit(Option<u32>)
VarBit(Option<u32>)
Uuid
Xml
Json
JsonB
Implementations§
source§impl PostgresType
impl PostgresType
pub fn to_parts(&self) -> (&'static str, Vec<String>)
pub fn from_parts( name: &str, arguments: &[String], span: Span, diagnostics: &mut Diagnostics ) -> Option<PostgresType>
Trait Implementations§
source§impl Clone for PostgresType
impl Clone for PostgresType
source§fn clone(&self) -> PostgresType
fn clone(&self) -> PostgresType
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 PostgresType
impl Debug for PostgresType
source§impl PartialEq for PostgresType
impl PartialEq for PostgresType
source§fn eq(&self, other: &PostgresType) -> bool
fn eq(&self, other: &PostgresType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PostgresType
impl StructuralPartialEq for PostgresType
Auto Trait Implementations§
impl RefUnwindSafe for PostgresType
impl Send for PostgresType
impl Sync for PostgresType
impl Unpin for PostgresType
impl UnwindSafe for PostgresType
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