pub struct Column { /* private fields */ }Implementations§
Source§impl Column
impl Column
pub fn new<S: Into<String>>( schema_name: Option<S>, name: S, column_type: ColumnType, length: i32, scale: i32, required: bool, ) -> Self
pub fn new_all<S: Into<String>>( schema_name: Option<S>, name: S, column_type: ColumnType, length: i32, scale: i32, required: bool, check_constraint: Option<String>, default_constraint: Option<String>, generated: Option<String>, min_value: Option<f64>, max_value: Option<f64>, enum_type: Option<String>, element_type: Option<String>, ) -> Self
pub fn schema_name(&self) -> Option<&str>
pub fn name(&self) -> &str
pub fn column_type(&self) -> ColumnType
pub fn length(&self) -> i32
pub fn scale(&self) -> i32
pub fn required(&self) -> bool
pub fn is_required(&self) -> bool
pub fn check_constraint(&self) -> Option<&str>
pub fn default_constraint(&self) -> Option<&str>
pub fn generated(&self) -> Option<&str>
pub fn min_value(&self) -> Option<f64>
pub fn max_value(&self) -> Option<f64>
pub fn enum_type(&self) -> Option<&str>
pub fn element_type(&self) -> Option<&str>
pub fn has_min_or_max_value(&self) -> bool
pub fn needs_check_constraints(&self, boolean_mode: BooleanMode) -> bool
Trait Implementations§
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