pub enum ColumnType {
String,
Uuid,
Integer,
BigInt,
}Expand description
The type of the tenant column.
Variants§
Implementations§
Source§impl ColumnType
impl ColumnType
Sourcepub fn placeholder(&self, index: usize) -> String
pub fn placeholder(&self, index: usize) -> String
Get the SQL placeholder for this column type.
Sourcepub fn format_value(&self, value: &str) -> String
pub fn format_value(&self, value: &str) -> String
Format a value for this column type.
Trait Implementations§
Source§impl Clone for ColumnType
impl Clone for ColumnType
Source§fn clone(&self) -> ColumnType
fn clone(&self) -> ColumnType
Returns a duplicate 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 ColumnType
impl Debug for ColumnType
Source§impl Default for ColumnType
impl Default for ColumnType
Source§fn default() -> ColumnType
fn default() -> ColumnType
Returns the “default value” for a type. Read more
Source§impl PartialEq for ColumnType
impl PartialEq for ColumnType
impl Copy for ColumnType
impl Eq for ColumnType
impl StructuralPartialEq for ColumnType
Auto Trait Implementations§
impl Freeze for ColumnType
impl RefUnwindSafe for ColumnType
impl Send for ColumnType
impl Sync for ColumnType
impl Unpin for ColumnType
impl UnwindSafe for ColumnType
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