[][src]Struct noria::results::Row

pub struct Row { /* fields omitted */ }

A single row from a result set.

You can access fields either by numerical index or by field index. If you want to also perform type conversion, use Row::get.

Implementations

impl Row[src]

pub fn get<T>(&self, field: &str) -> Option<T> where
    &'a DataType: Into<T>, 
[src]

Retrieve the field of the result by the given name as a T.

Returns None if the given field does not exist.

Panics if the value at the given field cannot be turned into a T.

pub fn take(&mut self, field: &str) -> Option<DataType>[src]

Remove the value for the field of the result by the given name.

Returns None if the given field does not exist.

Trait Implementations

impl AsRef<[DataType]> for Row[src]

impl Debug for Row[src]

impl Deref for Row[src]

type Target = [DataType]

The resulting type after dereferencing.

impl Eq for Row[src]

impl<'_> Index<&'_ str> for Row[src]

type Output = DataType

The returned type after indexing.

impl Index<usize> for Row[src]

type Output = DataType

The returned type after indexing.

impl Into<Vec<DataType>> for Row[src]

impl IntoIterator for Row[src]

type Item = DataType

The type of the elements being iterated over.

type IntoIter = IntoIter<DataType>

Which kind of iterator are we turning this into?

impl<'_> PartialEq<&'_ Vec<DataType>> for Row[src]

impl PartialEq<[DataType]> for Row[src]

impl PartialEq<Row> for Row[src]

impl PartialEq<Vec<DataType>> for Row[src]

impl StructuralEq for Row[src]

impl StructuralPartialEq for Row[src]

Auto Trait Implementations

impl RefUnwindSafe for Row

impl Send for Row

impl Sync for Row

impl Unpin for Row

impl UnwindSafe for Row

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument 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<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?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>, 

impl<T> WithSubscriber for T[src]