pub enum Parameter {
String(String),
Int(i64),
Double(f64),
}
Expand description
Used for inserting user data in the query and escaping it properly
This type gets primarilly constructed by the query!
macro but can
also be constructed with Parameter::from
Variants§
String(String)
The Parameter is a String
Int(i64)
The Parameter is an Integer
Double(f64)
The Parameter is a Double
Trait Implementations§
impl StructuralPartialEq for Parameter
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnwindSafe for Parameter
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