pub struct CreateFunctionStatementBuilder { /* private fields */ }Expand description
Builder for CreateFunctionStatement.
Implementations
sourceimpl CreateFunctionStatementBuilder
impl CreateFunctionStatementBuilder
pub fn set_or_replace(&mut self, value: bool) -> &mut Self
pub fn set_if_not_exists(&mut self, value: bool) -> &mut Self
pub fn func(&mut self, value: FunctionDeclaration) -> &mut Self
pub fn on_null_input(&mut self, value: OnNullInput) -> &mut Self
pub fn return_type<VALUE: Into<CqlType>>(&mut self, value: VALUE) -> &mut Self
pub fn language<VALUE: Into<Name>>(&mut self, value: VALUE) -> &mut Self
pub fn body<VALUE: Into<LitStr>>(&mut self, value: VALUE) -> &mut Self
sourcepub fn build(
&self
) -> Result<CreateFunctionStatement, CreateFunctionStatementBuilderError>
pub fn build(
&self
) -> Result<CreateFunctionStatement, CreateFunctionStatementBuilderError>
sourceimpl CreateFunctionStatementBuilder
impl CreateFunctionStatementBuilder
sourcepub fn if_not_exists(&mut self) -> &mut Self
pub fn if_not_exists(&mut self) -> &mut Self
Set IF NOT EXISTS on the statement.
To undo this, use set_if_not_exists(false).
sourcepub fn or_replace(&mut self) -> &mut Self
pub fn or_replace(&mut self) -> &mut Self
Set OR REPLACE on the statement.
To undo this, use set_or_replace(false).
Trait Implementations
sourceimpl Clone for CreateFunctionStatementBuilder
impl Clone for CreateFunctionStatementBuilder
sourcefn clone(&self) -> CreateFunctionStatementBuilder
fn clone(&self) -> CreateFunctionStatementBuilder
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
Auto Trait Implementations
impl RefUnwindSafe for CreateFunctionStatementBuilder
impl Send for CreateFunctionStatementBuilder
impl Sync for CreateFunctionStatementBuilder
impl Unpin for CreateFunctionStatementBuilder
impl UnwindSafe for CreateFunctionStatementBuilder
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