pub struct Row {
pub values: Vec<ColumnValue>,
}Expand description
A row of column values.
Fields§
§values: Vec<ColumnValue>Implementations§
Source§impl Row
impl Row
Sourcepub fn new(values: Vec<ColumnValue>) -> Self
pub fn new(values: Vec<ColumnValue>) -> Self
Create a new row from values.
Sourcepub fn get(&self, index: usize) -> Option<&ColumnValue>
pub fn get(&self, index: usize) -> Option<&ColumnValue>
Get a value by index.
Sourcepub fn size_bytes(&self) -> usize
pub fn size_bytes(&self) -> usize
Estimate the size of this row in bytes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Row
impl<'de> Deserialize<'de> for Row
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Row
Auto Trait Implementations§
impl Freeze for Row
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnsafeUnpin for Row
impl UnwindSafe for Row
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