pub struct Passthrough;Expand description
No-op InPlaceTransform. Useful for tests and library completeness.
Operators configuring surreal-sync via TOML should omit transforms entirely for identity; they do not need an explicit passthrough stage.
Pushing Passthrough into a pipeline does not make that pipeline’s
identity check true — that requires an empty stage list. Config loading
should collapse passthrough-only TOML to empty.
Trait Implementations§
Source§impl Clone for Passthrough
impl Clone for Passthrough
Source§fn clone(&self) -> Passthrough
fn clone(&self) -> Passthrough
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Passthrough
Source§impl Debug for Passthrough
impl Debug for Passthrough
Source§impl Default for Passthrough
impl Default for Passthrough
Source§fn default() -> Passthrough
fn default() -> Passthrough
Returns the “default value” for a type. Read more
Source§impl InPlaceTransform for Passthrough
impl InPlaceTransform for Passthrough
Source§fn transform(
&self,
_table: &str,
_id: &mut Value,
_fields: Option<&mut HashMap<String, Value>>,
) -> Result<()>
fn transform( &self, _table: &str, _id: &mut Value, _fields: Option<&mut HashMap<String, Value>>, ) -> Result<()>
Mutate the shared document surface (id + optional field map). Read more
Source§fn transform_change(&self, change: &mut Change) -> Result<()>
fn transform_change(&self, change: &mut Change) -> Result<()>
Transform a single change in place (including deletes).
Source§fn transform_relation(&self, _relation: &mut Relation) -> Result<()>
fn transform_relation(&self, _relation: &mut Relation) -> Result<()>
Transform a single relation in place. Default: no-op.
Source§fn transform_relation_change(&self, _change: &mut RelationChange) -> Result<()>
fn transform_relation_change(&self, _change: &mut RelationChange) -> Result<()>
Transform a single relation change in place. Default: no-op.
Source§fn transform_rows_inplace(&self, rows: &mut [Row]) -> Result<()>
fn transform_rows_inplace(&self, rows: &mut [Row]) -> Result<()>
Transform a slice of owned rows in place (true zero-copy path).
Source§fn transform_changes_inplace(&self, changes: &mut [Change]) -> Result<()>
fn transform_changes_inplace(&self, changes: &mut [Change]) -> Result<()>
Transform a slice of owned changes in place (true zero-copy path).
Source§fn transform_relations_inplace(&self, relations: &mut [Relation]) -> Result<()>
fn transform_relations_inplace(&self, relations: &mut [Relation]) -> Result<()>
Transform a slice of owned relations in place. Default: loop.
Source§fn transform_relation_changes_inplace(
&self,
changes: &mut [RelationChange],
) -> Result<()>
fn transform_relation_changes_inplace( &self, changes: &mut [RelationChange], ) -> Result<()>
Transform a slice of owned relation changes in place. Default: loop.
Auto Trait Implementations§
impl Freeze for Passthrough
impl RefUnwindSafe for Passthrough
impl Send for Passthrough
impl Sync for Passthrough
impl Unpin for Passthrough
impl UnsafeUnpin for Passthrough
impl UnwindSafe for Passthrough
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