pub struct OptionLabel {
pub stage: &'static str,
pub path: String,
pub key: String,
pub text: String,
}Expand description
One dialogue option label — the caption vanilla draws on a fixed-width dialog button — with its stage-doc path, its l10n inventory key and the canonical English text.
Fields§
§stage: &'static strThe stage document the string was authored in (dialogue for a real
dialogue option; a bonfire’s labels carry the stage they were authored in).
path: StringJSON-pointer-ish path within that stage doc.
key: StringThe l10n inventory key (dlg.<npc>.<node>.opt.<i>.label).
text: StringThe canonical English text.
Trait Implementations§
Source§impl Clone for OptionLabel
impl Clone for OptionLabel
Source§impl Debug for OptionLabel
impl Debug for OptionLabel
impl Eq for OptionLabel
Source§impl PartialEq for OptionLabel
impl PartialEq for OptionLabel
impl StructuralPartialEq for OptionLabel
Auto Trait Implementations§
impl Freeze for OptionLabel
impl RefUnwindSafe for OptionLabel
impl Send for OptionLabel
impl Sync for OptionLabel
impl Unpin for OptionLabel
impl UnsafeUnpin for OptionLabel
impl UnwindSafe for OptionLabel
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