pub trait UserGuidance {
// Required methods
fn suggestion(&self) -> Option<String>;
fn next_steps(&self) -> Vec<String>;
}Expand description
Trait providing actionable recovery guidance for errors.
Each error variant maps to a human-friendly suggestion and next steps, helping users recover without external documentation.
Required Methods§
Sourcefn suggestion(&self) -> Option<String>
fn suggestion(&self) -> Option<String>
A concise suggestion for the most likely recovery action.
Sourcefn next_steps(&self) -> Vec<String>
fn next_steps(&self) -> Vec<String>
Ordered list of next steps the user can try.