pub struct Label {
pub text: String,
pub key: Option<String>,
pub args: BTreeMap<String, String>,
}Expand description
What a step is called: a message id and its arguments, rendered in the interface’s language when shown, with its English text for an interface that does not know the message (“Exposure +0.30 EV”).
Fields§
§text: StringThe text in English (or as the owner wrote it).
key: Option<String>The message id, when the label is translated.
args: BTreeMap<String, String>The message’s arguments.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Label
impl<'de> Deserialize<'de> for Label
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Label
Auto Trait Implementations§
impl Freeze for Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnsafeUnpin for Label
impl UnwindSafe for Label
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