Struct tea_sdk::utils::wasm_actor::prelude::Row
pub struct Row(pub Vec<Value>);
Tuple Fields§
§0: Vec<Value>
Implementations§
§impl Row
impl Row
pub fn get_value_by_index(&self, index: usize) -> Option<&Value>
pub fn get_value(&self, columns: &[String], ident: &str) -> Option<&Value>
pub fn take_first_value(self) -> Result<Value, Error>
pub fn new( column_defs: &[ColumnDef], columns: &[String], values: &[Expr] ) -> Result<Row, Error>
pub fn validate(&self, column_defs: &[ColumnDef]) -> Result<(), Error>
pub fn iter(&self) -> Iter<'_, Value>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
§impl<'de> Deserialize<'de> for Row
impl<'de> Deserialize<'de> for Row
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Row, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Row, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl IntoIterator for Row
impl IntoIterator for Row
§impl Serialize for Row
impl Serialize for Row
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
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