pub struct CreateFunctionStatementBuilder { /* private fields */ }
Expand description
Builder for CreateFunctionStatement
.
Implementations§
Source§impl 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>
Source§impl 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§
Source§impl Clone for CreateFunctionStatementBuilder
impl Clone for CreateFunctionStatementBuilder
Source§fn clone(&self) -> CreateFunctionStatementBuilder
fn clone(&self) -> CreateFunctionStatementBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateFunctionStatementBuilder
impl RefUnwindSafe for CreateFunctionStatementBuilder
impl Send for CreateFunctionStatementBuilder
impl Sync for CreateFunctionStatementBuilder
impl Unpin for CreateFunctionStatementBuilder
impl UnwindSafe for CreateFunctionStatementBuilder
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