Struct hdbconnect::Row [−][src]
pub struct Row { /* fields omitted */ }
A generic implementation of a single line of a ResultSet
.
Methods
impl Row
[src]
impl Row
pub fn new(metadata: Arc<ResultSetMetadata>, values: Vec<HdbValue>) -> Row
[src]
pub fn new(metadata: Arc<ResultSetMetadata>, values: Vec<HdbValue>) -> Row
Factory for row.
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
Returns the length of the row.
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
Returns true if the row contains no value.
pub fn pop(&mut self) -> Option<HdbValue>
[src]
pub fn pop(&mut self) -> Option<HdbValue>
Removes and returns the last value.
pub fn get_fieldname(&self, i: usize) -> HdbResult<&String>
[src]
pub fn get_fieldname(&self, i: usize) -> HdbResult<&String>
Returns the name of the i'th column
pub fn reverse_values(&mut self)
[src]
pub fn reverse_values(&mut self)
Reverses the order of the values
pub fn cloned_value(&self, i: usize) -> HdbResult<HdbValue>
[src]
pub fn cloned_value(&self, i: usize) -> HdbResult<HdbValue>
Returns a clone of the ith value.
pub fn pop_into<'de, T>(&mut self) -> HdbResult<T> where
T: Deserialize<'de>,
[src]
pub fn pop_into<'de, T>(&mut self) -> HdbResult<T> where
T: Deserialize<'de>,
Pops and converts the last field into a plain rust value.
pub fn field_into<'de, T>(&mut self, i: usize) -> HdbResult<T> where
T: Deserialize<'de>,
[src]
pub fn field_into<'de, T>(&mut self, i: usize) -> HdbResult<T> where
T: Deserialize<'de>,
Swaps out a field and converts it into a plain rust value.
pub fn field_into_option<'de, T>(&mut self, i: usize) -> HdbResult<Option<T>> where
T: Deserialize<'de>,
[src]
pub fn field_into_option<'de, T>(&mut self, i: usize) -> HdbResult<Option<T>> where
T: Deserialize<'de>,
Swaps out a field and converts it into an Option of a plain rust value.
pub fn field_into_nclob(&mut self, i: usize) -> HdbResult<NCLob>
[src]
pub fn field_into_nclob(&mut self, i: usize) -> HdbResult<NCLob>
Swaps out a field and converts it into a CLOB.
pub fn field_into_clob(&mut self, i: usize) -> HdbResult<CLob>
[src]
pub fn field_into_clob(&mut self, i: usize) -> HdbResult<CLob>
Swaps out a field and converts it into a CLOB.
pub fn field_into_blob(&mut self, i: usize) -> HdbResult<BLob>
[src]
pub fn field_into_blob(&mut self, i: usize) -> HdbResult<BLob>
Swaps out a field and converts it into a BLob.
pub fn try_into<'de, T>(self) -> HdbResult<T> where
T: Deserialize<'de>,
[src]
pub fn try_into<'de, T>(self) -> HdbResult<T> where
T: Deserialize<'de>,
Converts the Row into a rust value.
Trait Implementations
impl Clone for Row
[src]
impl Clone for Row
fn clone(&self) -> Row
[src]
fn clone(&self) -> Row
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Row
[src]
impl Debug for Row
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl IntoIterator for Row
[src]
impl IntoIterator for Row
type Item = HdbValue
The type of the elements being iterated over.
type IntoIter = IntoIter<HdbValue>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl Display for Row
[src]
impl Display for Row