pub struct TestChangeBuilder { /* private fields */ }Expand description
Builder for creating test flow changes
Implementations§
Source§impl TestChangeBuilder
impl TestChangeBuilder
Sourcepub fn changed_by_shape(self, shape: ShapeId) -> Self
pub fn changed_by_shape(self, shape: ShapeId) -> Self
Set the origin as an external source
Sourcepub fn changed_by_node(self, node: FlowNodeId) -> Self
pub fn changed_by_node(self, node: FlowNodeId) -> Self
Set the origin as an internal node
Sourcepub fn with_version(self, version: CommitVersion) -> Self
pub fn with_version(self, version: CommitVersion) -> Self
Set the version
Sourcepub fn with_changed_at(self, changed_at: DateTime) -> Self
pub fn with_changed_at(self, changed_at: DateTime) -> Self
Set the changed_at timestamp
Sourcepub fn insert_row(
self,
row_number: impl Into<RowNumber>,
values: Vec<Value>,
) -> Self
pub fn insert_row( self, row_number: impl Into<RowNumber>, values: Vec<Value>, ) -> Self
Add an insert diff with values (convenience method)
Sourcepub fn update_row(
self,
row_number: impl Into<RowNumber>,
pre_values: Vec<Value>,
post_values: Vec<Value>,
) -> Self
pub fn update_row( self, row_number: impl Into<RowNumber>, pre_values: Vec<Value>, post_values: Vec<Value>, ) -> Self
Add an update diff with values (convenience method)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestChangeBuilder
impl RefUnwindSafe for TestChangeBuilder
impl Send for TestChangeBuilder
impl Sync for TestChangeBuilder
impl Unpin for TestChangeBuilder
impl UnsafeUnpin for TestChangeBuilder
impl UnwindSafe for TestChangeBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more