[][src]Enum mysql::Params

pub enum Params {
    Empty,
    Named(HashMap<String, Value, BuildHasherDefault<XxHash64>>),
    Positional(Vec<Value>),
}

Representations of parameters of a prepared statement.

Variants

Empty
Positional(Vec<Value>)

Methods

impl Params[src]

pub fn into_positional(
    self,
    named_params: &[String]
) -> Result<Params, MissingNamedParameterError>
[src]

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

Trait Implementations

impl Clone for Params[src]

impl Debug for Params[src]

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

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

impl From<()> for Params[src]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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

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

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

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

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

impl PartialEq<Params> for Params[src]

impl StructuralPartialEq for Params[src]

Auto Trait Implementations

impl RefUnwindSafe for Params

impl Send for Params

impl Sync for Params

impl Unpin for Params

impl UnwindSafe for Params

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,