pub trait Templater: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn description(&self) -> &'static str;
fn process(
&self,
in_str: &str,
f_name: &str,
config: Option<&FluffConfig>,
formatter: &Option<Arc<dyn Formatter>>,
) -> Result<TemplatedFile, SQLFluffUserError>;
}
Required Methods§
Sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
Description of the templater.
Sourcefn process(
&self,
in_str: &str,
f_name: &str,
config: Option<&FluffConfig>,
formatter: &Option<Arc<dyn Formatter>>,
) -> Result<TemplatedFile, SQLFluffUserError>
fn process( &self, in_str: &str, f_name: &str, config: Option<&FluffConfig>, formatter: &Option<Arc<dyn Formatter>>, ) -> Result<TemplatedFile, SQLFluffUserError>
Process a string and return a TemplatedFile.