pub struct TranslationEntry {
pub category: Category,
pub needles: &'static [&'static str],
pub severity: Severity,
pub plain_english: &'static str,
pub action: &'static str,
}Expand description
A single translation entry.
plain_english and action may contain {port}, {pid}, {module},
{pkg}, {lib} and {tool} placeholders that are filled from the error
text at translation time.
Fields§
§category: CategoryEcosystem this error belongs to.
needles: &'static [&'static str]Lower-case substrings that identify the error. Any one of them is enough to match.
severity: SeverityHow urgent the situation is for a beginner.
plain_english: &'static strJargon-free explanation, ideally with an analogy.
action: &'static strA concrete command or next step.
Implementations§
Auto Trait Implementations§
impl Forget for TranslationEntry
impl Freeze for TranslationEntry
impl RefUnwindSafe for TranslationEntry
impl Send for TranslationEntry
impl Sync for TranslationEntry
impl Unpin for TranslationEntry
impl UnsafeUnpin for TranslationEntry
impl UnwindSafe for TranslationEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more