Enum scylladb_parse::InsertKind
source · [−]pub enum InsertKind {
NameValue {
names: Vec<Name>,
values: TupleLiteral,
},
Json {
json: LitStr,
default: Option<ColumnDefault>,
},
}Variants
NameValue
Json
Implementations
Trait Implementations
sourceimpl Clone for InsertKind
impl Clone for InsertKind
sourcefn clone(&self) -> InsertKind
fn clone(&self) -> InsertKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'a> CustomToTokens<'a> for InsertKind
impl<'a> CustomToTokens<'a> for InsertKind
fn to_tokens(&'a self, tokens: &mut TokenStream)
sourceimpl Debug for InsertKind
impl Debug for InsertKind
sourceimpl Display for InsertKind
impl Display for InsertKind
sourceimpl FromStr for InsertKind
impl FromStr for InsertKind
sourceimpl Parse for InsertKind
impl Parse for InsertKind
type Output = InsertKind
fn parse(s: &mut StatementStream<'_>) -> Result<Self::Output>
sourceimpl PartialEq<InsertKind> for InsertKind
impl PartialEq<InsertKind> for InsertKind
sourcefn eq(&self, other: &InsertKind) -> bool
fn eq(&self, other: &InsertKind) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &InsertKind) -> bool
fn ne(&self, other: &InsertKind) -> bool
This method tests for !=.
sourceimpl ToTokens for InsertKind
impl ToTokens for InsertKind
sourcefn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Write self to the given TokenStream. Read more
sourcefn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Convert self directly into a TokenStream object. Read more
sourcefn into_token_stream(self) -> TokenStream
fn into_token_stream(self) -> TokenStream
Convert self directly into a TokenStream object. Read more
impl Eq for InsertKind
impl StructuralEq for InsertKind
impl StructuralPartialEq for InsertKind
Auto Trait Implementations
impl RefUnwindSafe for InsertKind
impl Send for InsertKind
impl Sync for InsertKind
impl Unpin for InsertKind
impl UnwindSafe for InsertKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more