Skip to main content

MessageFormatter

Trait MessageFormatter 

Source
pub trait MessageFormatter {
    // Required method
    fn describe(&self, change: &StructuralChange) -> String;
}
Expand description

Language-specific human-readable descriptions for changes.

Each language owns its messaging entirely – there is no generic template in core. These descriptions are consumed by LLMs downstream, so language-appropriate terminology matters.

Required Methods§

Source

fn describe(&self, change: &StructuralChange) -> String

Produce a human-readable description for a structural change.

Implementors§