pub struct ColumnSettings {
pub span_range: Range<usize>,
pub attributes: Vec<Attribute>,
pub is_pk: bool,
pub is_unique: bool,
pub nullable: Option<Nullable>,
pub is_incremental: bool,
pub note: Option<String>,
pub default: Option<Value>,
pub refs: Vec<RefInline>,
}
Expand description
Represents settings of a column.
Fields§
§span_range: Range<usize>
The range of the span in the source text.
attributes: Vec<Attribute>
A vector of key and optional value pairs representing attributes of the column.
is_pk: bool
A boolean indicating if the column is a primary key.
is_unique: bool
A boolean indicating if the column is unique.
nullable: Option<Nullable>
An enum indicating the nullable status of the column.
is_incremental: bool
A boolean indicating if the column is incremental.
note: Option<String>
A note associated with the column.
default: Option<Value>
A default value for the column.
refs: Vec<RefInline>
A vector of inline references associated with the column.
Trait Implementations§
Source§impl Clone for ColumnSettings
impl Clone for ColumnSettings
Source§fn clone(&self) -> ColumnSettings
fn clone(&self) -> ColumnSettings
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 ColumnSettings
impl Debug for ColumnSettings
Source§impl Default for ColumnSettings
impl Default for ColumnSettings
Source§fn default() -> ColumnSettings
fn default() -> ColumnSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ColumnSettings
impl RefUnwindSafe for ColumnSettings
impl Send for ColumnSettings
impl Sync for ColumnSettings
impl Unpin for ColumnSettings
impl UnwindSafe for ColumnSettings
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