[][src]Function serde_db::ser::to_params

pub fn to_params<T: ?Sized, DF: DbvFactory>(
    value: &T,
    metadata: &mut dyn Iterator<Item = DF>
) -> Result<Vec<DF::DBV>, SerializationError> where
    T: Serialize

Provided method that translates the input into a Vec of database values.

Database drivers use this method in their implementation (e.g. behind a PreparedStatement::add_batch()).

Errors

SerializationError if the value cannot be translated into a database value of the required type.