pub enum BaseType {
}
Expand description
Core type enum, describing the basic type
Variants§
Text
A string blob, stored in the heap with a pointer in the row
Varchar(usize)
Variable-length string that (hopefully) is stored to the row
Char(usize)
Fixed-length string that is stored to the row
Primary
Primary key (utility for incrementing integer – postgres supports this, we just mirror it)
Integer
Simple integer
Serial
An integer that as a default value of the next biggest number
Float
Floating point number
Double
Like Float but ~ ~ d o u b l e p r e c i s i o n ~ ~
UUID
A unique identifier type
Boolean
True or False
Json
Json encoded data
Date
Date
Time
Date
DateTime
Date and time
Binary
Foreign(Option<String>, String, WrapVec<String>)
Foreign key to other table
Custom(&'static str)
I have no idea what you are – but I like it
Array(Box<BaseType>)
Any of the above, but many of them
Index(Vec<String>)
Indexing over multiple columns
Constraint(Constraint, Vec<String>)
Indexing over multiple columns
Trait Implementations§
source§impl PartialEq for BaseType
impl PartialEq for BaseType
impl StructuralPartialEq for BaseType
Auto Trait Implementations§
impl RefUnwindSafe for BaseType
impl Send for BaseType
impl Sync for BaseType
impl Unpin for BaseType
impl UnwindSafe for BaseType
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