pub trait Transform: Sync + Send {
// Required methods
fn name(&self) -> &'static str;
fn id(&self) -> &'static str;
fn description(&self) -> &'static str;
fn category(&self) -> TransformerCategory;
fn transform(&self, input: &str) -> Result<String, TransformError>;
fn default_test_input(&self) -> &'static str;
}Expand description
Defines the interface for all transformers
Required Methods§
Sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
Get the description of the transformer
Sourcefn category(&self) -> TransformerCategory
fn category(&self) -> TransformerCategory
Get the category of the transformer
Sourcefn default_test_input(&self) -> &'static str
fn default_test_input(&self) -> &'static str
Provide a default input string suitable for testing the transformer.