Trait rsfbclient::IntoParams
source · [−]pub trait IntoParams {
fn to_params(self) -> ParamsType;
}
Expand description
Types with an associated boolean flag function, named()
indiciating support for named or positional parameters.
With both named (as a struct field) or positional (as a Vector or tuple element) parameters, Option<T>
, with T
an IntoParam
, may be used to indicate a nullable argument, wherein the None
variant provides a null
value.
This crate provides a derive macro for supplying arguments via the fields of a struct and their labels.
Required Methods
fn to_params(self) -> ParamsType
Implementations on Foreign Types
sourceimpl<L, M, N, O> IntoParams for (L, M, N, O) where
L: IntoParam,
M: IntoParam,
N: IntoParam,
O: IntoParam,
impl<L, M, N, O> IntoParams for (L, M, N, O) where
L: IntoParam,
M: IntoParam,
N: IntoParam,
O: IntoParam,
fn to_params(self) -> ParamsType
sourceimpl<K, L, M, N, O> IntoParams for (K, L, M, N, O) where
K: IntoParam,
L: IntoParam,
M: IntoParam,
N: IntoParam,
O: IntoParam,
impl<K, L, M, N, O> IntoParams for (K, L, M, N, O) where
K: IntoParam,
L: IntoParam,
M: IntoParam,
N: IntoParam,
O: IntoParam,
fn to_params(self) -> ParamsType
sourceimpl<O> IntoParams for (O,) where
O: IntoParam,
impl<O> IntoParams for (O,) where
O: IntoParam,
fn to_params(self) -> ParamsType
sourceimpl<D, E, F, G, H, I, J, K, L, M, N, O> IntoParams for (D, E, F, G, H, I, J, K, L, M, N, O) where
D: IntoParam,
E: IntoParam,
F: IntoParam,
G: IntoParam,
H: IntoParam,
I: IntoParam,
J: IntoParam,
K: IntoParam,
L: IntoParam,
M: IntoParam,
N: IntoParam,
O: IntoParam,
impl<D, E, F, G, H, I, J, K, L, M, N, O> IntoParams for (D, E, F, G, H, I, J, K, L, M, N, O) where
D: IntoParam,
E: IntoParam,
F: IntoParam,
G: IntoParam,
H: IntoParam,
I: IntoParam,
J: IntoParam,
K: IntoParam,
L: IntoParam,
M: IntoParam,
N: IntoParam,
O: IntoParam,
fn to_params(self) -> ParamsType
sourceimpl IntoParams for Vec<SqlType, Global>
impl IntoParams for Vec<SqlType, Global>
Allow use of a vector instead of tuples, for run-time-determined parameter count, or for when there are too many parameters to use one of the provided tuple implementations