pub struct Row {
pub table: String,
pub index: u64,
pub id: Value,
pub fields: HashMap<String, Value>,
}Expand description
Internal row representation - the intermediate format.
Row represents a single row of data in the intermediate format,
produced by the data generator and consumed by both source populators
and the streaming verifier.
Fields§
§table: StringTable name
index: u64Row index (for incremental support and reproducibility)
id: ValuePrimary key value
fields: HashMap<String, Value>Field values (column name -> value)
Implementations§
Source§impl Row
impl Row
Sourcepub fn new(
table: impl Into<String>,
index: u64,
id: Value,
fields: HashMap<String, Value>,
) -> Self
pub fn new( table: impl Into<String>, index: u64, id: Value, fields: HashMap<String, Value>, ) -> Self
Create a new internal row.
Sourcepub fn builder(table: impl Into<String>, index: u64, id: Value) -> RowBuilder
pub fn builder(table: impl Into<String>, index: u64, id: Value) -> RowBuilder
Create a new internal row with a builder pattern.
Sourcepub fn field_count(&self) -> usize
pub fn field_count(&self) -> usize
Get the number of fields (excluding the id).
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