#[non_exhaustive]pub struct SettingsDiagnostic {
pub severity: DiagnosticSeverity,
pub error: WorkshopError,
pub suggestion: Option<String>,
}Expand description
One reported settings member: the WorkshopError a caller would see,
plus the canonical spelling it was close to when exactly one candidate
qualifies. The error’s message already names the suggestion; the field
lets callers apply or render it without parsing text.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.severity: DiagnosticSeverityWhether the diagnostic rejects the member or only advises about it.
error: WorkshopErrorThe rejection or advisory, with its source span and any suggestion in
the message. Warnings carry WorkshopError::Warning.
suggestion: Option<String>The single canonical spelling the reported input was close to (a case
or accent difference, or a small edit distance). None when no
candidate is close or several are. The spelling is a Workshop display
name (enabled maps, Château Guillard) — the form source text
should carry — not a canonical table key.