pub struct MessagePart {
pub key: String,
pub params: BTreeMap<String, DiagParam>,
}Expand description
One translatable piece of a diagnosis message: a text key and the values
for its placeholders. The UI looks the key up in its own catalog and
fills in the parameters; the plain message stays the fallback.
Fields§
§key: String§params: BTreeMap<String, DiagParam>Implementations§
Trait Implementations§
Source§impl Clone for MessagePart
impl Clone for MessagePart
Source§fn clone(&self) -> MessagePart
fn clone(&self) -> MessagePart
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessagePart
impl Debug for MessagePart
Source§impl From<MessagePart> for DiagParam
impl From<MessagePart> for DiagParam
Source§fn from(part: MessagePart) -> Self
fn from(part: MessagePart) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MessagePart
impl PartialEq for MessagePart
impl Eq for MessagePart
impl StructuralPartialEq for MessagePart
Auto Trait Implementations§
impl Freeze for MessagePart
impl RefUnwindSafe for MessagePart
impl Send for MessagePart
impl Sync for MessagePart
impl Unpin for MessagePart
impl UnwindSafe for MessagePart
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