[][src]Struct hdbconnect::Row

pub struct Row { /* fields omitted */ }

A single line of a ResultSet, consisting of the contained HdbValues and a reference to the metadata.

Row has several methods that support an efficient data transfer into your own data structures.

You also can access individual values with row[idx], or iterate over the values (with row.iter() or for value in row {...}).

Methods

impl Row[src]

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

Converts the entire Row into a rust value.

pub fn next_value(&mut self) -> Option<HdbValue<'static>>[src]

Removes and returns the next value.

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 into_single_value(self) -> HdbResult<HdbValue<'static>>[src]

Converts itself in the single contained value.

Fails if the row is empty or has more than one value.

pub fn metadata(&self) -> &ResultSetMetadata[src]

Returns the metadata.

Trait Implementations

impl Iterator for Row[src]

Row is an iterator with item = HdbValue.

type Item = HdbValue<'static>

The type of the elements being iterated over.

impl Display for Row[src]

impl Debug for Row[src]

impl Index<usize> for Row[src]

Support indexing.

type Output = HdbValue<'static>

The returned type after indexing.

impl DeserializableRow for Row[src]

type V = HdbValue<'static>

The value type used by the database driver.

type E = HdbError

The error type used by the database driver.

Auto Trait Implementations

impl Send for Row

impl Sync for Row

impl Unpin for Row

impl UnwindSafe for Row

impl RefUnwindSafe for Row

Blanket Implementations

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

impl<T> From<T> 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> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,