Struct sqlx_ledger::tx_template::ParamDefinitionBuilder
source · pub struct ParamDefinitionBuilder { /* private fields */ }
Expand description
Builder for ParamDefinition
.
Implementations§
source§impl ParamDefinitionBuilder
impl ParamDefinitionBuilder
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn type(&mut self, value: ParamDataType) -> &mut Self
pub fn default_expr<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
sourcepub fn build(&self) -> Result<ParamDefinition, ParamDefinitionBuilderError>
pub fn build(&self) -> Result<ParamDefinition, ParamDefinitionBuilderError>
Trait Implementations§
source§impl Clone for ParamDefinitionBuilder
impl Clone for ParamDefinitionBuilder
source§fn clone(&self) -> ParamDefinitionBuilder
fn clone(&self) -> ParamDefinitionBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more