pub enum Params {
Empty,
Named(HashMap<Vec<u8>, Value>),
Positional(Vec<Value>),
}
Expand description
Representations of parameters of a prepared statement.
Variants§
Implementations§
Source§impl Params
impl Params
Sourcepub fn into_positional(
self,
named_params: &[Vec<u8>],
) -> Result<Params, MissingNamedParameterError>
pub fn into_positional( self, named_params: &[Vec<u8>], ) -> Result<Params, MissingNamedParameterError>
Will convert named parameters into positional assuming order passed in named_params
attribute.
Trait Implementations§
Source§impl<A, B, C, D> From<(A, B, C, D)> for Params
impl<A, B, C, D> From<(A, B, C, D)> for Params
Source§fn from(x: (A, B, C, D)) -> Params
fn from(x: (A, B, C, D)) -> Params
Converts to this type from the input type.
Source§impl<A, B, C, D, E> From<(A, B, C, D, E)> for Params
impl<A, B, C, D, E> From<(A, B, C, D, E)> for Params
Source§fn from(x: (A, B, C, D, E)) -> Params
fn from(x: (A, B, C, D, E)) -> Params
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F> From<(A, B, C, D, E, F)> for Params
impl<A, B, C, D, E, F> From<(A, B, C, D, E, F)> for Params
Source§fn from(x: (A, B, C, D, E, F)) -> Params
fn from(x: (A, B, C, D, E, F)) -> Params
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G> From<(A, B, C, D, E, F, G)> for Params
impl<A, B, C, D, E, F, G> From<(A, B, C, D, E, F, G)> for Params
Source§fn from(x: (A, B, C, D, E, F, G)) -> Params
fn from(x: (A, B, C, D, E, F, G)) -> Params
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G, H> From<(A, B, C, D, E, F, G, H)> for Params
impl<A, B, C, D, E, F, G, H> From<(A, B, C, D, E, F, G, H)> for Params
Source§fn from(x: (A, B, C, D, E, F, G, H)) -> Params
fn from(x: (A, B, C, D, E, F, G, H)) -> Params
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G, H, I> From<(A, B, C, D, E, F, G, H, I)> for Params
impl<A, B, C, D, E, F, G, H, I> From<(A, B, C, D, E, F, G, H, I)> for Params
Source§fn from(x: (A, B, C, D, E, F, G, H, I)) -> Params
fn from(x: (A, B, C, D, E, F, G, H, I)) -> Params
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G, H, I, J> From<(A, B, C, D, E, F, G, H, I, J)> for Params
impl<A, B, C, D, E, F, G, H, I, J> From<(A, B, C, D, E, F, G, H, I, J)> for Params
Source§fn from(x: (A, B, C, D, E, F, G, H, I, J)) -> Params
fn from(x: (A, B, C, D, E, F, G, H, I, J)) -> Params
Converts to this type from the input type.
Source§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
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
Source§fn from(x: (A, B, C, D, E, F, G, H, I, J, K)) -> Params
fn from(x: (A, B, C, D, E, F, G, H, I, J, K)) -> Params
Converts to this type from the input type.
Source§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
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
Source§fn from(x: (A, B, C, D, E, F, G, H, I, J, K, L)) -> Params
fn from(x: (A, B, C, D, E, F, G, H, I, J, K, L)) -> Params
Converts to this type from the input type.
impl StructuralPartialEq for Params
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more