pub struct ViewColumnDef {
pub name: Ident,
pub data_type: Option<DataType>,
pub options: Option<ColumnOptions>,
}Expand description
Column definition specified in a CREATE VIEW statement.
Syntax
<name> [data_type][OPTIONS(option, ...)]
option: <name> = <value>Examples:
name
age OPTIONS(description = "age column", tag = "prod")
amount COMMENT 'The total amount for the order line'
created_at DateTime64Fields§
§name: IdentColumn identifier.
data_type: Option<DataType>Optional data type for the column.
options: Option<ColumnOptions>Optional column options (defaults, comments, etc.).
Trait Implementations§
Source§impl Clone for ViewColumnDef
impl Clone for ViewColumnDef
Source§fn clone(&self) -> ViewColumnDef
fn clone(&self) -> ViewColumnDef
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 ViewColumnDef
impl Debug for ViewColumnDef
Source§impl Display for ViewColumnDef
impl Display for ViewColumnDef
Source§impl Hash for ViewColumnDef
impl Hash for ViewColumnDef
Source§impl Ord for ViewColumnDef
impl Ord for ViewColumnDef
Source§fn cmp(&self, other: &ViewColumnDef) -> Ordering
fn cmp(&self, other: &ViewColumnDef) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ViewColumnDef
impl PartialEq for ViewColumnDef
Source§impl PartialOrd for ViewColumnDef
impl PartialOrd for ViewColumnDef
Source§impl Spanned for ViewColumnDef
impl Spanned for ViewColumnDef
Source§impl Visit for ViewColumnDef
impl Visit for ViewColumnDef
Source§impl VisitMut for ViewColumnDef
impl VisitMut for ViewColumnDef
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreimpl Eq for ViewColumnDef
impl StructuralPartialEq for ViewColumnDef
Auto Trait Implementations§
impl Freeze for ViewColumnDef
impl RefUnwindSafe for ViewColumnDef
impl Send for ViewColumnDef
impl Sync for ViewColumnDef
impl Unpin for ViewColumnDef
impl UnsafeUnpin for ViewColumnDef
impl UnwindSafe for ViewColumnDef
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