pub struct Column {
pub relation: Option<TableReference>,
pub name: String,
pub data_type: DataType,
pub nullable: bool,
pub default: ScalarValue,
}Fields§
§relation: Option<TableReference>§name: String§data_type: DataType§nullable: bool§default: ScalarValueImplementations§
Source§impl Column
impl Column
pub fn with_relation(self, relation: impl Into<Option<TableReference>>) -> Self
pub fn with_name(self, name: impl Into<String>) -> Self
pub fn with_data_type(self, data_type: impl Into<DataType>) -> Self
pub fn with_nullable(self, nullable: impl Into<bool>) -> Self
pub fn with_default(self, default: impl Into<ScalarValue>) -> Self
Trait Implementations§
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.