pub struct JoinResultSet {
pub columns: Vec<JoinColumnDef>,
pub rows: Vec<Vec<Value>>,
}Expand description
Result of Database::select_join.
The column descriptions are stored once in columns; every entry of
rows holds one Value per column, in the same order. Use
Self::column_index to resolve a column name once and index each row,
or Self::iter to walk the rows as JoinRow views.
Fields§
§columns: Vec<JoinColumnDef>One description per output column, in row order. The table field
names the table each column comes from.
rows: Vec<Vec<Value>>One entry per row; rows[r][c] belongs to columns[c].
Implementations§
Source§impl JoinResultSet
impl JoinResultSet
Sourcepub fn column_index(&self, column: &str) -> Option<usize>
pub fn column_index(&self, column: &str) -> Option<usize>
Returns the index of column in Self::columns.
"table.column" matches the column of that table. A bare name matches
the first column with that name in row order.
Trait Implementations§
Source§impl Clone for JoinResultSet
impl Clone for JoinResultSet
Source§impl Debug for JoinResultSet
impl Debug for JoinResultSet
Source§impl Default for JoinResultSet
impl Default for JoinResultSet
Source§impl<'de> Deserialize<'de> for JoinResultSet
impl<'de> Deserialize<'de> for JoinResultSet
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for JoinResultSet
Source§impl<'a> IntoIterator for &'a JoinResultSet
impl<'a> IntoIterator for &'a JoinResultSet
Source§impl PartialEq for JoinResultSet
impl PartialEq for JoinResultSet
Source§impl Serialize for JoinResultSet
impl Serialize for JoinResultSet
impl StructuralPartialEq for JoinResultSet
Auto Trait Implementations§
impl Freeze for JoinResultSet
impl RefUnwindSafe for JoinResultSet
impl Send for JoinResultSet
impl Sync for JoinResultSet
impl Unpin for JoinResultSet
impl UnsafeUnpin for JoinResultSet
impl UnwindSafe for JoinResultSet
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