pub struct ColumnBuilder { /* private fields */ }Expand description
ColumnBuilder holds intermediate settings for a column and produces a model::Column on build.
Implementations§
Source§impl ColumnBuilder
impl ColumnBuilder
pub fn new<S: Into<String>>( schema_name: Option<S>, name: S, column_type: ColumnType, ) -> Self
pub fn length(self, length: i32) -> Self
pub fn scale(self, scale: i32) -> Self
pub fn required(self, required: bool) -> Self
pub fn check_constraint(self, check_constraint: Option<String>) -> Self
pub fn default_constraint(self, default_constraint: Option<String>) -> Self
pub fn generated(self, generated: Option<String>) -> Self
pub fn min_value(self, min_value: Option<f64>) -> Self
pub fn max_value(self, max_value: Option<f64>) -> Self
pub fn enum_type(self, enum_type: Option<String>) -> Self
pub fn element_type(self, element_type: Option<String>) -> Self
pub fn build(self) -> Column
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ColumnBuilder
impl RefUnwindSafe for ColumnBuilder
impl Send for ColumnBuilder
impl Sync for ColumnBuilder
impl Unpin for ColumnBuilder
impl UnsafeUnpin for ColumnBuilder
impl UnwindSafe for ColumnBuilder
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