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§impl PartialOrd for ViewColumnDef
impl PartialOrd for ViewColumnDef
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