Enum mysql_common::params::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]
impl Params
pub fn into_positional(
self,
named_params: &Vec<String>
) -> Result<Params, MissingNamedParameterError>
[src]
pub fn into_positional(
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 for Params
[src]
impl PartialEq for Params
fn eq(&self, other: &Params) -> bool
[src]
fn eq(&self, other: &Params) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Params) -> bool
[src]
fn ne(&self, other: &Params) -> bool
This method tests for !=
.
impl Clone for Params
[src]
impl Clone for Params
fn clone(&self) -> Params
[src]
fn clone(&self) -> Params
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Params
[src]
impl Debug for Params
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a, T: Into<Params> + Clone> From<&'a T> for Params
[src]
impl<'a, T: Into<Params> + Clone> From<&'a T> for Params
impl<T> From<Vec<T>> for Params where
Value: From<T>,
[src]
impl<T> From<Vec<T>> for Params where
Value: From<T>,
impl<N, V> From<Vec<(N, V)>> for Params where
String: From<N>,
Value: From<V>,
[src]
impl<N, V> From<Vec<(N, V)>> for Params where
String: From<N>,
Value: From<V>,
impl<'a> From<&'a [&'a ToValue]> for Params
[src]
impl<'a> From<&'a [&'a ToValue]> for Params
impl From<()> for Params
[src]
impl From<()> for Params
impl<A: Into<Value>> From<(A,)> for Params
[src]
impl<A: Into<Value>> From<(A,)> for Params
impl<A: Into<Value>, B: Into<Value>> From<(A, B)> for Params
[src]
impl<A: Into<Value>, B: Into<Value>> From<(A, B)> for Params
impl<A: Into<Value>, B: Into<Value>, C: Into<Value>> From<(A, B, C)> for Params
[src]
impl<A: Into<Value>, B: Into<Value>, C: Into<Value>> From<(A, B, C)> for Params
impl<A: Into<Value>, B: Into<Value>, C: Into<Value>, D: Into<Value>> From<(A, B, C, D)> for Params
[src]
impl<A: Into<Value>, B: Into<Value>, C: Into<Value>, D: Into<Value>> From<(A, B, C, D)> for Params
impl<A: Into<Value>, B: Into<Value>, C: Into<Value>, D: Into<Value>, E: Into<Value>> From<(A, B, C, D, E)> for Params
[src]
impl<A: Into<Value>, B: Into<Value>, C: Into<Value>, D: Into<Value>, E: Into<Value>> From<(A, B, C, D, E)> for Params
impl<A: Into<Value>, B: Into<Value>, C: Into<Value>, D: Into<Value>, E: Into<Value>, F: Into<Value>> From<(A, B, C, D, E, F)> for Params
[src]
impl<A: Into<Value>, B: Into<Value>, C: Into<Value>, D: Into<Value>, E: Into<Value>, F: Into<Value>> From<(A, B, C, D, E, F)> for Params
impl<A: Into<Value>, B: Into<Value>, C: Into<Value>, D: Into<Value>, E: Into<Value>, F: Into<Value>, G: Into<Value>> From<(A, B, C, D, E, F, G)> for Params
[src]
impl<A: Into<Value>, B: Into<Value>, C: Into<Value>, D: Into<Value>, E: Into<Value>, F: Into<Value>, G: Into<Value>> From<(A, B, C, D, E, F, G)> for Params
impl<A: Into<Value>, B: Into<Value>, C: Into<Value>, D: Into<Value>, E: Into<Value>, F: Into<Value>, G: Into<Value>, H: Into<Value>> From<(A, B, C, D, E, F, G, H)> for Params
[src]
impl<A: Into<Value>, B: Into<Value>, C: Into<Value>, D: Into<Value>, E: Into<Value>, F: Into<Value>, G: Into<Value>, H: Into<Value>> From<(A, B, C, D, E, F, G, H)> for Params
impl<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>> From<(A, B, C, D, E, F, G, H, I)> for Params
[src]
impl<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>> From<(A, B, C, D, E, F, G, H, I)> for Params
impl<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>> From<(A, B, C, D, E, F, G, H, I, J)> for Params
[src]
impl<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>> From<(A, B, C, D, E, F, G, H, I, J)> for Params
impl<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>> From<(A, B, C, D, E, F, G, H, I, J, K)> for Params
[src]
impl<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>> From<(A, B, C, D, E, F, G, H, I, J, K)> for Params
impl<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>> From<(A, B, C, D, E, F, G, H, I, J, K, L)> for Params
[src]
impl<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>> From<(A, B, C, D, E, F, G, H, I, J, K, L)> for Params