pub struct TestRowBuilder { /* private fields */ }Expand description
Builder for creating test rows
Implementations§
Source§impl TestRowBuilder
impl TestRowBuilder
Sourcepub fn new(row_number: impl Into<RowNumber>) -> Self
pub fn new(row_number: impl Into<RowNumber>) -> Self
Create a new row builder with the given row number
Sourcepub fn with_values(self, values: Vec<Value>) -> Self
pub fn with_values(self, values: Vec<Value>) -> Self
Set the values for the row
Sourcepub fn with_layout(self, layout: EncodedValuesLayout) -> Self
pub fn with_layout(self, layout: EncodedValuesLayout) -> Self
Set the layout for the row (inferred from values if not set)
Sourcepub fn with_named_layout(self, layout: EncodedValuesNamedLayout) -> Self
pub fn with_named_layout(self, layout: EncodedValuesNamedLayout) -> Self
Set a named layout for the row
Auto Trait Implementations§
impl Freeze for TestRowBuilder
impl RefUnwindSafe for TestRowBuilder
impl Send for TestRowBuilder
impl Sync for TestRowBuilder
impl Unpin for TestRowBuilder
impl UnwindSafe for TestRowBuilder
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