[−][src]Struct noria::results::Row
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]
&'a DataType: Into<T>,
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.
fn deref(&self) -> &Self::Target
[src]
impl Eq for Row
[src]
impl<'_> Index<&'_ str> for Row
[src]
type Output = DataType
The returned type after indexing.
fn index(&self, index: &str) -> &Self::Output
[src]
impl Index<usize> for Row
[src]
type Output = DataType
The returned type after indexing.
fn index(&self, index: usize) -> &Self::Output
[src]
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?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'_> PartialEq<&'_ Vec<DataType>> for Row
[src]
fn eq(&self, other: &&Vec<DataType>) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<[DataType]> for Row
[src]
impl PartialEq<Row> for Row
[src]
impl PartialEq<Vec<DataType>> for Row
[src]
fn eq(&self, other: &Vec<DataType>) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
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?
fn into_iter(self) -> I
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,