#[non_exhaustive]pub struct ParameterMappingBuilder { /* private fields */ }
Expand description
A builder for ParameterMapping
.
Implementations§
source§impl ParameterMappingBuilder
impl ParameterMappingBuilder
sourcepub fn type(self, input: Type) -> Self
pub fn type(self, input: Type) -> Self
Contains the data type of a column in a query result set. The data type can be scalar or complex. The supported scalar data types are integers, Boolean, string, double, timestamp, date, time, and intervals. The supported complex data types are arrays, rows, and timeseries.
This field is required.sourcepub fn set_type(self, input: Option<Type>) -> Self
pub fn set_type(self, input: Option<Type>) -> Self
Contains the data type of a column in a query result set. The data type can be scalar or complex. The supported scalar data types are integers, Boolean, string, double, timestamp, date, time, and intervals. The supported complex data types are arrays, rows, and timeseries.
sourcepub fn get_type(&self) -> &Option<Type>
pub fn get_type(&self) -> &Option<Type>
Contains the data type of a column in a query result set. The data type can be scalar or complex. The supported scalar data types are integers, Boolean, string, double, timestamp, date, time, and intervals. The supported complex data types are arrays, rows, and timeseries.
sourcepub fn build(self) -> Result<ParameterMapping, BuildError>
pub fn build(self) -> Result<ParameterMapping, BuildError>
Consumes the builder and constructs a ParameterMapping
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ParameterMappingBuilder
impl Clone for ParameterMappingBuilder
source§fn clone(&self) -> ParameterMappingBuilder
fn clone(&self) -> ParameterMappingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ParameterMappingBuilder
impl Debug for ParameterMappingBuilder
source§impl Default for ParameterMappingBuilder
impl Default for ParameterMappingBuilder
source§fn default() -> ParameterMappingBuilder
fn default() -> ParameterMappingBuilder
source§impl PartialEq for ParameterMappingBuilder
impl PartialEq for ParameterMappingBuilder
source§fn eq(&self, other: &ParameterMappingBuilder) -> bool
fn eq(&self, other: &ParameterMappingBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ParameterMappingBuilder
Auto Trait Implementations§
impl Freeze for ParameterMappingBuilder
impl RefUnwindSafe for ParameterMappingBuilder
impl Send for ParameterMappingBuilder
impl Sync for ParameterMappingBuilder
impl Unpin for ParameterMappingBuilder
impl UnwindSafe for ParameterMappingBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more