pub struct CqlCreateIndex {
pub if_not_exists: bool,
pub name: Option<CqlIdentifier>,
pub table: CqlTable,
pub columns: Vec<CqlIndexColumn>,
pub using: Option<String>,
pub options: HashMap<String, String>,
}Expand description
CREATE INDEX statement AST
Fields§
§if_not_exists: boolIF NOT EXISTS modifier
name: Option<CqlIdentifier>Index name (optional)
table: CqlTableTarget table
columns: Vec<CqlIndexColumn>Indexed columns/expressions
using: Option<String>USING clause (index type)
options: HashMap<String, String>Index options
Trait Implementations§
Source§impl Clone for CqlCreateIndex
impl Clone for CqlCreateIndex
Source§fn clone(&self) -> CqlCreateIndex
fn clone(&self) -> CqlCreateIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CqlCreateIndex
impl Debug for CqlCreateIndex
Source§impl<'de> Deserialize<'de> for CqlCreateIndex
impl<'de> Deserialize<'de> for CqlCreateIndex
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 PartialEq for CqlCreateIndex
impl PartialEq for CqlCreateIndex
Source§fn eq(&self, other: &CqlCreateIndex) -> bool
fn eq(&self, other: &CqlCreateIndex) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CqlCreateIndex
impl Serialize for CqlCreateIndex
impl StructuralPartialEq for CqlCreateIndex
Auto Trait Implementations§
impl Freeze for CqlCreateIndex
impl RefUnwindSafe for CqlCreateIndex
impl Send for CqlCreateIndex
impl Sync for CqlCreateIndex
impl Unpin for CqlCreateIndex
impl UnsafeUnpin for CqlCreateIndex
impl UnwindSafe for CqlCreateIndex
Blanket Implementations§
impl<T> Allocation for T
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