Struct sqlparser::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<'de> Deserialize<'de> for ViewColumnDef
impl<'de> Deserialize<'de> for ViewColumnDef
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 moresource§impl Serialize for ViewColumnDef
impl Serialize for ViewColumnDef
source§impl Visit for ViewColumnDef
impl Visit for ViewColumnDef
source§impl VisitMut for ViewColumnDef
impl VisitMut for ViewColumnDef
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
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