[][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 {...}).

Implementations

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.

Errors

HdbError::Deserialization if deserialization into the target type is not possible.

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

Removes and returns the next value.

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

Conveniently combines next_value() and the value's try_into().

Errors

HdbError::Usage if there is no more element.

HdbError::Deserialization if deserialization into the target type is not possible.

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.

Errors

HdbError::Usage if the row is empty or has more than one value.

pub fn metadata(&self) -> &Vec<FieldMetadata>[src]

Returns the metadata.

Trait Implementations

impl Debug for Row[src]

impl DeserializableRow for Row[src]

type V = HdbValue<'static>

The value type used by the database driver.

type E = DeserializationError

The error type used by the database driver.

impl Display for Row[src]

impl Index<usize> for Row[src]

Support indexing.

type Output = HdbValue<'static>

The returned type after indexing.

impl Iterator for Row[src]

Row is an iterator with item HdbValue.

type Item = HdbValue<'static>

The type of the elements being iterated over.

Auto Trait Implementations

impl !RefUnwindSafe for Row[src]

impl !Send for Row[src]

impl !Sync for Row[src]

impl Unpin for Row[src]

impl !UnwindSafe for Row[src]

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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<I> IteratorRandom for I where
    I: Iterator
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,