Struct mysql::value::Serialized
[−]
[src]
pub struct Serialized<T>(pub T);
Use it to pass T: Encodable
as JSON to a prepared statement.
#[derive(RustcEncodable)] struct EncodableStruct { // ... } conn.prep_exec("INSERT INTO table (json_column) VALUES (?)", (Serialized(EncosdableStruct),));