pub struct OwnedRow { /* private fields */ }Available on crate feature
tokio only.Expand description
A binary table row that owns the bytes it decodes from.
Row borrows both its bytes and its column definitions, which ties it to a
BinTable held in memory. A streamed row has
no such table behind it — not holding one is the point of streaming — so it
keeps its own copy of the row and shares one set of column definitions with
the rest of the stream.
Implementations§
Source§impl OwnedRow
impl OwnedRow
Sourcepub fn get(&self, key: &str) -> Result<Option<Value>>
pub fn get(&self, key: &str) -> Result<Option<Value>>
Reads the column named key, or None if this row has no such column.
Sourcepub fn get_at(&self, index: usize) -> Result<Option<Value>>
pub fn get_at(&self, index: usize) -> Result<Option<Value>>
Reads the column at index, or None if this row has no such column.
Sourcepub fn field_definitions(&self) -> &[FieldDefinition]
pub fn field_definitions(&self) -> &[FieldDefinition]
The columns this row is made of.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OwnedRow
impl RefUnwindSafe for OwnedRow
impl Send for OwnedRow
impl Sync for OwnedRow
impl Unpin for OwnedRow
impl UnsafeUnpin for OwnedRow
impl UnwindSafe for OwnedRow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more