Struct hdbconnect::Row
source · pub struct Row { /* private fields */ }
Expand description
A generic implementation of a single line of a ResultSet
.
Implementations§
source§impl Row
impl Row
sourcepub fn get_fieldname(&self, i: usize) -> HdbResult<&String>
pub fn get_fieldname(&self, i: usize) -> HdbResult<&String>
Returns the name of the i’th column
sourcepub fn reverse_values(&mut self)
pub fn reverse_values(&mut self)
Reverses the order of the values
sourcepub fn cloned_value(&self, i: usize) -> HdbResult<HdbValue>
pub fn cloned_value(&self, i: usize) -> HdbResult<HdbValue>
Returns a clone of the ith value.
sourcepub fn pop_into<'de, T>(&mut self) -> HdbResult<T>where
T: Deserialize<'de>,
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.
sourcepub fn field_into<'de, T>(&mut self, i: usize) -> HdbResult<T>where
T: Deserialize<'de>,
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.
sourcepub fn field_into_option<'de, T>(&mut self, i: usize) -> HdbResult<Option<T>>where
T: Deserialize<'de>,
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.
sourcepub fn field_into_nclob(&mut self, i: usize) -> HdbResult<NCLob>
pub fn field_into_nclob(&mut self, i: usize) -> HdbResult<NCLob>
Swaps out a field and converts it into a CLOB.
sourcepub fn field_into_clob(&mut self, i: usize) -> HdbResult<CLob>
pub fn field_into_clob(&mut self, i: usize) -> HdbResult<CLob>
Swaps out a field and converts it into a CLOB.
sourcepub fn field_into_blob(&mut self, i: usize) -> HdbResult<BLob>
pub fn field_into_blob(&mut self, i: usize) -> HdbResult<BLob>
Swaps out a field and converts it into a BLob.
sourcepub fn try_into<'de, T>(self) -> HdbResult<T>where
T: Deserialize<'de>,
pub fn try_into<'de, T>(self) -> HdbResult<T>where
T: Deserialize<'de>,
Converts the Row into a rust value.