[][src]Struct hdbconnect::Row

pub struct Row { /* fields omitted */ }

A generic implementation of a single line of a ResultSet.

Methods

impl Row
[src]

pub fn new(metadata: Arc<ResultSetMetadata>, values: Vec<HdbValue>) -> Row
[src]

Factory for row.

pub fn len(&self) -> usize
[src]

Returns the length of the row.

pub fn is_empty(&self) -> bool
[src]

Returns true if the row contains no value.

pub fn pop(&mut self) -> Option<HdbValue>
[src]

Removes and returns the last value.

pub fn get_fieldname(&self, i: usize) -> HdbResult<&String>
[src]

Returns the name of the i'th column

pub fn reverse_values(&mut self)
[src]

Reverses the order of the values

pub fn cloned_value(&self, i: usize) -> HdbResult<HdbValue>
[src]

Returns a clone of the ith value.

pub fn pop_into<'de, T>(&mut self) -> HdbResult<T> where
    T: Deserialize<'de>, 
[src]

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]

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]

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]

Swaps out a field and converts it into a CLOB.

pub fn field_into_clob(&mut self, i: usize) -> HdbResult<CLob>
[src]

Swaps out a field and converts it into a CLOB.

pub fn field_into_blob(&mut self, i: usize) -> HdbResult<BLob>
[src]

Swaps out a field and converts it into a BLob.

pub fn try_into<'de, T>(self) -> HdbResult<T> where
    T: Deserialize<'de>, 
[src]

Converts the Row into a rust value.

Trait Implementations

impl IntoIterator for Row
[src]

type Item = HdbValue

The type of the elements being iterated over.

type IntoIter = IntoIter<HdbValue>

Which kind of iterator are we turning this into?

impl Clone for Row
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Row
[src]

impl Display for Row
[src]

impl DeserializableRow for Row
[src]

type V = HdbValue

The value type used by the database driver.

type E = HdbError

The error type used by the database driver.

fn into_typed<'de, T>(self) -> Result<T, Self::E> where
    T: Deserialize<'de>, 
[src]

Converts the row into a struct, a tuple, or (if applicable) into a plain rust value.

Auto Trait Implementations

impl Send for Row

impl !Sync for Row

Blanket Implementations

impl<T> From for T
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self