pub struct Column { /* private fields */ }Implementations§
Source§impl Column
impl Column
pub fn new(name: impl Into<String>, data_type: DataTypeDescriptor) -> Self
pub fn integer(name: impl Into<String>) -> Self
pub fn float(name: impl Into<String>) -> Self
pub fn text(name: impl Into<String>) -> Self
pub fn boolean(name: impl Into<String>) -> Self
pub fn timestamp(name: impl Into<String>) -> Self
pub fn date(name: impl Into<String>) -> Self
pub fn json(name: impl Into<String>) -> Self
pub fn uuid(name: impl Into<String>) -> Self
pub fn bytes(name: impl Into<String>) -> Self
pub fn decimal(name: impl Into<String>, precision: u8, scale: u8) -> Self
pub fn vector(name: impl Into<String>, dimensions: u16) -> Self
pub fn not_null(self, value: bool) -> Self
pub fn primary_key(self, value: bool) -> Self
pub fn unique(self, value: bool) -> Self
pub fn auto_increment(self, value: bool) -> Self
pub fn default(self, value: impl Into<Expr>) -> Self
pub fn check(self, value: impl Into<Expr>) -> Self
pub fn reference(self, reference: ReferenceDefinition) -> Self
pub fn extension(self, name: impl Into<String>, value: Value) -> Self
pub fn into_ir(self) -> ColumnDefinition
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Column
impl<'de> Deserialize<'de> for Column
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Column
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnsafeUnpin for Column
impl UnwindSafe for Column
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