pub struct ResultSet {
pub columns: Vec<String>,
pub rows: Vec<Row>,
/* private fields */
}Fields§
§columns: Vec<String>§rows: Vec<Row>Implementations§
Source§impl ResultSet
impl ResultSet
pub fn new(columns: Vec<String>, rows: Vec<Vec<Value>>) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get_row(&self, index: usize) -> Option<&Row>
pub fn iter(&self) -> Iter<'_, Row>
pub fn column_count(&self) -> usize
pub fn get_column_index(&self, column_name: &str) -> Option<usize>
pub fn to_structs<T: FromRow>(&self) -> Result<Vec<T>>
pub fn render_ascii_table(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResultSet
impl RefUnwindSafe for ResultSet
impl Send for ResultSet
impl Sync for ResultSet
impl Unpin for ResultSet
impl UnsafeUnpin for ResultSet
impl UnwindSafe for ResultSet
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