Function serde_rusqlite::from_rows[][src]

pub fn from_rows<D: DeserializeOwned>(rows: Rows<'_>) -> DeserRows<'_, D>

Notable traits for DeserRows<'_, D>

impl<D: DeserializeOwned> Iterator for DeserRows<'_, D> type Item = Result<D>;

Returns iterator that owns rusqlite::Rows and deserializes all records from it into instances of D: serde::Deserialize

Also see from_row() for some specific info.

This function covers most of the use cases and is easier to use than the alternative from_rows_ref().