pub struct Recordset { /* private fields */ }Expand description
Recordset containing query results
Implementations§
Source§impl Recordset
impl Recordset
Sourcepub fn column_count(&self) -> usize
pub fn column_count(&self) -> usize
Get the number of columns
Sourcepub fn column_names(&self) -> Vec<String>
pub fn column_names(&self) -> Vec<String>
Get column names
Sourcepub fn columns(&self) -> &[ColumnInfo]
pub fn columns(&self) -> &[ColumnInfo]
Get column information
Sourcepub fn current_row(&self) -> Option<HashMap<String, JsonValue>>
pub fn current_row(&self) -> Option<HashMap<String, JsonValue>>
Get current row data as a HashMap
Sourcepub fn get_data_structured(&self) -> XdlResult<HashMap<String, Vec<XdlValue>>>
pub fn get_data_structured(&self) -> XdlResult<HashMap<String, Vec<XdlValue>>>
Get data as a column-major structure (like IDL structures)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Recordset
impl RefUnwindSafe for Recordset
impl Send for Recordset
impl Sync for Recordset
impl Unpin for Recordset
impl UnwindSafe for Recordset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more