Skip to main content

Module transform

Module transform 

Source
Expand description

Record transformation pipeline.

§Built-in transforms (optional Cargo features)

VariantFeature flagDefault
RecordTransform::Flattentransform-flattenenabled
RecordTransform::RenameKeystransform-rename-keysenabled
RecordTransform::KeysToSnakeCasetransform-snake-caseenabled

Disable a transform (and its dependencies) by opting out of its feature:

[dependencies]
faucet-stream = { version = "*", default-features = false,
                  features = ["transform-flatten"] }

§Custom transforms

RecordTransform::Custom is always available regardless of features. Pass any closure or function pointer via RecordTransform::custom.

Enums§

RecordTransform
A transformation applied to every record fetched by a crate::stream::RestStream.