Struct sql_migration_sim::ast::ViewColumnDef
source · pub struct ViewColumnDef {
pub name: Ident,
pub options: Option<Vec<SqlOption>>,
}Expand description
Column definition specified in a CREATE VIEW statement.
Syntax
<name> [OPTIONS(option, ...)]
option: <name> = <value>
Examples:
name
age OPTIONS(description = "age column", tag = "prod")
Fields§
§name: Ident§options: Option<Vec<SqlOption>>Trait Implementations§
source§impl Clone for ViewColumnDef
impl Clone for ViewColumnDef
source§fn clone(&self) -> ViewColumnDef
fn clone(&self) -> ViewColumnDef
Returns a copy 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§fn eq(&self, other: &ViewColumnDef) -> bool
fn eq(&self, other: &ViewColumnDef) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ViewColumnDef
impl PartialOrd for ViewColumnDef
source§fn partial_cmp(&self, other: &ViewColumnDef) -> Option<Ordering>
fn partial_cmp(&self, other: &ViewColumnDef) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for ViewColumnDef
impl StructuralPartialEq for ViewColumnDef
Auto Trait Implementations§
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