pub struct ViewColumnDef {
pub name: Ident,
pub data_type: Option<DataType>,
pub options: Option<Vec<ColumnOption>>,
}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: Ident§data_type: Option<DataType>§options: Option<Vec<ColumnOption>>Trait Implementations§
Source§impl AsNodeKey for ViewColumnDef
impl AsNodeKey for ViewColumnDef
fn as_node_key(&self) -> NodeKey<'_>
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<'ast> Transformable<'ast> for ViewColumnDef
impl<'ast> Transformable<'ast> for ViewColumnDef
Source§impl Visitable for ViewColumnDef
impl Visitable for ViewColumnDef
Source§fn accept<'ast, V: Visitor<'ast>>(
&'ast self,
visitor: &mut V,
) -> ControlFlow<Break<V::Error>>
fn accept<'ast, V: Visitor<'ast>>( &'ast self, visitor: &mut V, ) -> ControlFlow<Break<V::Error>>
Accepts a borrowed
Visitor and traverses the AST starting at self invoking Visitor::enter and
Visitor::exit as nodes are entered and exiting respectively.Source§fn downcast_ref<Target: Visitable>(&self) -> Option<&Target>
fn downcast_ref<Target: Visitable>(&self) -> Option<&Target>
Tries to downcast
self as &Target.Source§fn downcast_mut<Target: Visitable>(&mut self) -> Option<&mut Target>
fn downcast_mut<Target: Visitable>(&mut self) -> Option<&mut Target>
Tries to downcast
self as &mut Target.impl 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 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