pub enum ConfigMessage {
Keyed {
key: String,
params: Vec<(String, ConfigMessage)>,
},
Literal(String),
Concat(Vec<ConfigMessage>),
}Expand description
A message the host raises for the command to render.
The host never renders user-facing text for the config group: it returns a
stable key plus named replacements (each replacement is itself a message,
so a host never pre-renders a localized fragment), and the command resolves
it through the presentation shape. Non-localized text (protocol/config/
command names, computed values) stays a Literal.
Variants§
Keyed
Resolved by the presentation shape via its stable snake_case key.
Literal(String)
Non-localized text.
Concat(Vec<ConfigMessage>)
A sequence rendered in order, for literal framing around keyed parts.
Implementations§
Trait Implementations§
Source§impl Clone for ConfigMessage
impl Clone for ConfigMessage
Source§impl Debug for ConfigMessage
impl Debug for ConfigMessage
impl Eq for ConfigMessage
Source§impl From<&str> for ConfigMessage
impl From<&str> for ConfigMessage
Source§impl From<String> for ConfigMessage
impl From<String> for ConfigMessage
Source§impl PartialEq for ConfigMessage
impl PartialEq for ConfigMessage
impl StructuralPartialEq for ConfigMessage
Auto Trait Implementations§
impl Forget for ConfigMessage
impl Freeze for ConfigMessage
impl Move for ConfigMessage
impl RefUnwindSafe for ConfigMessage
impl Send for ConfigMessage
impl Sync for ConfigMessage
impl Unpin for ConfigMessage
impl UnsafeUnpin for ConfigMessage
impl UnwindSafe for ConfigMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.