pub enum Row {
Vec {
columns: Rc<[String]>,
values: Vec<Value>,
},
Map(HashMap<String, Value>),
}
Variants§
Implementations§
source§impl Row
impl Row
pub fn get_value(&self, ident: &str) -> Option<&Value>
pub fn iter(&self) -> impl Iterator<Item = (&String, &Value)>
pub fn try_into_vec(self) -> Result<Vec<Value>, Error>
pub fn try_into_map(self) -> Result<HashMap<String, Value>, Error>
pub fn as_context(&self) -> RowContext<'_>
Trait Implementations§
impl StructuralPartialEq for Row
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§
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