Enum mysql::Params
[−]
[src]
pub enum Params { Empty, Named(HashMap<String, Value, BuildHasherDefault<XxHash>>), Positional(SmallVec<[Value; 12]>), }
Representations of parameters of a prepared statement.
Variants
Empty
Named(HashMap<String, Value, BuildHasherDefault<XxHash>>)
Positional(SmallVec<[Value; 12]>)
Methods
impl Params
[src]
pub fn into_positional(
self,
named_params: &Vec<String>
) -> Result<Params, MissingNamedParameterError>
[src]
self,
named_params: &Vec<String>
) -> Result<Params, MissingNamedParameterError>
Will convert named parameters into positional assuming order passed in named_params
attribute.
Trait Implementations
impl PartialEq<Params> for Params
[src]
fn eq(&self, __arg_0: &Params) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Params) -> bool
[src]
This method tests for !=
.
impl Debug for Params
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<A, B, C> From<(A, B, C)> for Params where
A: Into<Value>,
B: Into<Value>,
C: Into<Value>,
[src]
A: Into<Value>,
B: Into<Value>,
C: Into<Value>,
impl<A, B> From<(A, B)> for Params where
A: Into<Value>,
B: Into<Value>,
[src]
A: Into<Value>,
B: Into<Value>,
impl<A, B, C, D> From<(A, B, C, D)> for Params where
A: Into<Value>,
B: Into<Value>,
C: Into<Value>,
D: Into<Value>,
[src]
A: Into<Value>,
B: Into<Value>,
C: Into<Value>,
D: Into<Value>,
impl<A, B, C, D, E, F> From<(A, B, C, D, E, F)> for Params where
A: Into<Value>,
B: Into<Value>,
C: Into<Value>,
D: Into<Value>,
E: Into<Value>,
F: Into<Value>,
[src]
A: Into<Value>,
B: Into<Value>,
C: Into<Value>,
D: Into<Value>,
E: Into<Value>,
F: Into<Value>,
impl<A, B, C, D, E, F, G> From<(A, B, C, D, E, F, G)> for Params where
A: Into<Value>,
B: Into<Value>,
C: Into<Value>,
D: Into<Value>,
E: Into<Value>,
F: Into<Value>,
G: Into<Value>,
[src]
A: Into<Value>,
B: Into<Value>,
C: Into<Value>,
D: Into<Value>,
E: Into<Value>,
F: Into<Value>,
G: Into<Value>,
impl<A, B, C, D, E, F, G, H> From<(A, B, C, D, E, F, G, H)> for Params where
A: Into<Value>,
B: Into<Value>,
C: Into<Value>,
D: Into<Value>,
E: Into<Value>,
F: Into<Value>,
G: Into<Value>,
H: Into<Value>,
[src]
A: Into<Value>,
B: Into<Value>,
C: Into<Value>,
D: Into<Value>,
E: Into<Value>,
F: Into<Value>,
G: Into<Value>,
H: Into<Value>,
impl<A, B, C, D, E, F, G, H, I, J, K> From<(A, B, C, D, E, F, G, H, I, J, K)> for Params where
A: Into<Value>,
B: Into<Value>,
C: Into<Value>,
D: Into<Value>,
E: Into<Value>,
F: Into<Value>,
G: Into<Value>,
H: Into<Value>,
I: Into<Value>,
J: Into<Value>,
K: Into<Value>,
[src]
A: Into<Value>,
B: Into<Value>,
C: Into<Value>,
D: Into<Value>,
E: Into<Value>,
F: Into<Value>,
G: Into<Value>,
H: Into<Value>,
I: Into<Value>,
J: Into<Value>,
K: Into<Value>,
impl<A, B, C, D, E> From<(A, B, C, D, E)> for Params where
A: Into<Value>,
B: Into<Value>,
C: Into<Value>,
D: Into<Value>,
E: Into<Value>,
[src]
A: Into<Value>,
B: Into<Value>,
C: Into<Value>,
D: Into<Value>,
E: Into<Value>,
impl<A, B, C, D, E, F, G, H, I> From<(A, B, C, D, E, F, G, H, I)> for Params where
A: Into<Value>,
B: Into<Value>,
C: Into<Value>,
D: Into<Value>,
E: Into<Value>,
F: Into<Value>,
G: Into<Value>,
H: Into<Value>,
I: Into<Value>,
[src]
A: Into<Value>,
B: Into<Value>,
C: Into<Value>,
D: Into<Value>,
E: Into<Value>,
F: Into<Value>,
G: Into<Value>,
H: Into<Value>,
I: Into<Value>,
impl From<()> for Params
[src]
impl<'a, T> From<&'a T> for Params where
T: Clone + Into<Params>,
[src]
T: Clone + Into<Params>,
impl<A, B, C, D, E, F, G, H, I, J, K, L> From<(A, B, C, D, E, F, G, H, I, J, K, L)> for Params where
A: Into<Value>,
B: Into<Value>,
C: Into<Value>,
D: Into<Value>,
E: Into<Value>,
F: Into<Value>,
G: Into<Value>,
H: Into<Value>,
I: Into<Value>,
J: Into<Value>,
K: Into<Value>,
L: Into<Value>,
[src]
A: Into<Value>,
B: Into<Value>,
C: Into<Value>,
D: Into<Value>,
E: Into<Value>,
F: Into<Value>,
G: Into<Value>,
H: Into<Value>,
I: Into<Value>,
J: Into<Value>,
K: Into<Value>,
L: Into<Value>,
impl<'a> From<&'a [&'a (ToValue + 'a)]> for Params
[src]
impl<T> From<Vec<T>> for Params where
Value: From<T>,
[src]
Value: From<T>,
impl<A, B, C, D, E, F, G, H, I, J> From<(A, B, C, D, E, F, G, H, I, J)> for Params where
A: Into<Value>,
B: Into<Value>,
C: Into<Value>,
D: Into<Value>,
E: Into<Value>,
F: Into<Value>,
G: Into<Value>,
H: Into<Value>,
I: Into<Value>,
J: Into<Value>,
[src]
A: Into<Value>,
B: Into<Value>,
C: Into<Value>,
D: Into<Value>,
E: Into<Value>,
F: Into<Value>,
G: Into<Value>,
H: Into<Value>,
I: Into<Value>,
J: Into<Value>,
impl<N, V> From<Vec<(N, V)>> for Params where
String: From<N>,
Value: From<V>,
[src]
String: From<N>,
Value: From<V>,
impl<A> From<(A,)> for Params where
A: Into<Value>,
[src]
A: Into<Value>,