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