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

Methods

impl Params
[src]

Will convert named parameters into positional assuming order passed in named_params attribute.

Trait Implementations

impl Clone for Params
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Params
[src]

Formats the value using the given formatter. Read more

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]

Performs the conversion.

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]

Performs the conversion.

impl<N, V> From<Vec<(N, V)>> for Params where
    String: From<N>,
    Value: From<V>, 
[src]

Performs the conversion.

impl<A, B, C> From<(A, B, C)> for Params where
    A: Into<Value>,
    B: Into<Value>,
    C: Into<Value>, 
[src]

Performs the conversion.

impl<A, B> From<(A, B)> for Params where
    A: Into<Value>,
    B: Into<Value>, 
[src]

Performs the conversion.

impl<'a, T> From<&'a T> for Params where
    T: Clone + Into<Params>, 
[src]

Performs the conversion.

impl From<()> for Params
[src]

Performs the conversion.

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]

Performs the conversion.

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]

Performs the conversion.

impl<'a> From<&'a [&'a (ToValue + 'a)]> for Params
[src]

Performs the conversion.

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]

Performs the conversion.

impl<T> From<Vec<T>> for Params where
    Value: From<T>, 
[src]

Performs the conversion.

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]

Performs the conversion.

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]

Performs the conversion.

impl<A> From<(A,)> for Params where
    A: Into<Value>, 
[src]

Performs the conversion.

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]

Performs the conversion.

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]

Performs the conversion.

impl PartialEq<Params> for Params
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Params

impl Sync for Params