pub struct CreateAggregateFunctionStatementBuilder { /* private fields */ }
Expand description
Builder for CreateAggregateFunctionStatement
.
Implementations§
Source§impl CreateAggregateFunctionStatementBuilder
impl CreateAggregateFunctionStatementBuilder
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: FunctionSignature) -> &mut Self
pub fn state_modifying_fn(&mut self, value: FunctionName) -> &mut Self
pub fn state_value_type<VALUE: Into<CqlType>>( &mut self, value: VALUE, ) -> &mut Self
pub fn final_fn(&mut self, value: FunctionName) -> &mut Self
pub fn init_condition<VALUE: Into<Term>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<CreateAggregateFunctionStatement, CreateAggregateFunctionStatementBuilderError>
pub fn build( &self, ) -> Result<CreateAggregateFunctionStatement, CreateAggregateFunctionStatementBuilderError>
Builds a new CreateAggregateFunctionStatement
.
§Errors
If a required field has not been initialized.
Source§impl CreateAggregateFunctionStatementBuilder
impl CreateAggregateFunctionStatementBuilder
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 CreateAggregateFunctionStatementBuilder
impl Clone for CreateAggregateFunctionStatementBuilder
Source§fn clone(&self) -> CreateAggregateFunctionStatementBuilder
fn clone(&self) -> CreateAggregateFunctionStatementBuilder
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 CreateAggregateFunctionStatementBuilder
impl RefUnwindSafe for CreateAggregateFunctionStatementBuilder
impl Send for CreateAggregateFunctionStatementBuilder
impl Sync for CreateAggregateFunctionStatementBuilder
impl Unpin for CreateAggregateFunctionStatementBuilder
impl UnwindSafe for CreateAggregateFunctionStatementBuilder
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