Struct scylladb_parse::CreateFunctionStatement
source · [−]pub struct CreateFunctionStatement {
pub or_replace: bool,
pub if_not_exists: bool,
pub func: FunctionDeclaration,
pub on_null_input: OnNullInput,
pub return_type: CqlType,
pub language: Name,
pub body: LitStr,
}
Fields
or_replace: bool
if_not_exists: bool
func: FunctionDeclaration
on_null_input: OnNullInput
return_type: CqlType
language: Name
body: LitStr
Trait Implementations
sourceimpl Clone for CreateFunctionStatement
impl Clone for CreateFunctionStatement
sourcefn clone(&self) -> CreateFunctionStatement
fn clone(&self) -> CreateFunctionStatement
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 CreateFunctionStatement
impl<'a> CustomToTokens<'a> for CreateFunctionStatement
fn to_tokens(&'a self, tokens: &mut TokenStream)
sourceimpl Debug for CreateFunctionStatement
impl Debug for CreateFunctionStatement
sourceimpl Display for CreateFunctionStatement
impl Display for CreateFunctionStatement
sourceimpl From<CreateFunctionStatement> for UserDefinedFunctionStatement
impl From<CreateFunctionStatement> for UserDefinedFunctionStatement
sourcefn from(original: CreateFunctionStatement) -> UserDefinedFunctionStatement
fn from(original: CreateFunctionStatement) -> UserDefinedFunctionStatement
Converts to this type from the input type.
sourceimpl From<CreateFunctionStatement> for Statement
impl From<CreateFunctionStatement> for Statement
sourcefn from(v: CreateFunctionStatement) -> Self
fn from(v: CreateFunctionStatement) -> Self
Converts to this type from the input type.
sourceimpl FromStr for CreateFunctionStatement
impl FromStr for CreateFunctionStatement
sourceimpl Parse for CreateFunctionStatement
impl Parse for CreateFunctionStatement
type Output = CreateFunctionStatement
fn parse(s: &mut StatementStream<'_>) -> Result<Self::Output>
sourceimpl PartialEq<CreateFunctionStatement> for CreateFunctionStatement
impl PartialEq<CreateFunctionStatement> for CreateFunctionStatement
sourcefn eq(&self, other: &CreateFunctionStatement) -> bool
fn eq(&self, other: &CreateFunctionStatement) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateFunctionStatement) -> bool
fn ne(&self, other: &CreateFunctionStatement) -> bool
This method tests for !=
.
sourceimpl ToTokens for CreateFunctionStatement
impl ToTokens for CreateFunctionStatement
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
sourceimpl TryInto<CreateFunctionStatement> for Statement
impl TryInto<CreateFunctionStatement> for Statement
impl Eq for CreateFunctionStatement
impl StructuralEq for CreateFunctionStatement
impl StructuralPartialEq for CreateFunctionStatement
Auto Trait Implementations
impl RefUnwindSafe for CreateFunctionStatement
impl Send for CreateFunctionStatement
impl Sync for CreateFunctionStatement
impl Unpin for CreateFunctionStatement
impl UnwindSafe for CreateFunctionStatement
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more