Skip to main content

Recipe

Trait Recipe 

Source
pub trait Recipe: Send + Sync {
    // Required methods
    fn metadata(&self) -> &'static RecipeMetadata;
    fn detect(
        &self,
        root: &Path,
        progress: &ProgressBar,
    ) -> Result<DetectionReport>;
    fn transform(
        &self,
        report: &DetectionReport,
        options: TransformOptions,
    ) -> Result<TransformReport>;
}

Required Methods§

Source

fn metadata(&self) -> &'static RecipeMetadata

Source

fn detect(&self, root: &Path, progress: &ProgressBar) -> Result<DetectionReport>

Source

fn transform( &self, report: &DetectionReport, options: TransformOptions, ) -> Result<TransformReport>

Implementors§