pub struct BonfireLabels<'a> {
pub prompt: Option<&'a str>,
pub rest_label: Option<&'a str>,
pub save_label: Option<&'a str>,
pub rest_tooltip: Option<&'a str>,
pub save_tooltip: Option<&'a str>,
}Expand description
A bonfire’s authored rest-dialog strings, each None when the campaign
leaves the compiler’s canonical English in place
(QuestEffect::bonfire_labels).
Fields§
§prompt: Option<&'a str>Dialog title; None → BONFIRE_PROMPT_EN.
rest_label: Option<&'a str>Rest and save button label; None → BONFIRE_REST_LABEL_EN.
save_label: Option<&'a str>Save only button label; None → BONFIRE_SAVE_LABEL_EN.
rest_tooltip: Option<&'a str>Rest and save button hover tooltip (spec-0078); None → none emitted.
save_tooltip: Option<&'a str>Save only button hover tooltip (spec-0078); None → none emitted.
Implementations§
Source§impl BonfireLabels<'_>
impl BonfireLabels<'_>
Sourcepub fn prompt_or_default(&self) -> &str
pub fn prompt_or_default(&self) -> &str
The dialog title actually emitted.
Sourcepub fn rest_or_default(&self) -> &str
pub fn rest_or_default(&self) -> &str
The rest and save label actually emitted.
Sourcepub fn save_or_default(&self) -> &str
pub fn save_or_default(&self) -> &str
The save only label actually emitted.
Trait Implementations§
Source§impl<'a> Clone for BonfireLabels<'a>
impl<'a> Clone for BonfireLabels<'a>
impl<'a> Copy for BonfireLabels<'a>
Source§impl<'a> Debug for BonfireLabels<'a>
impl<'a> Debug for BonfireLabels<'a>
impl<'a> Eq for BonfireLabels<'a>
Source§impl<'a> PartialEq for BonfireLabels<'a>
impl<'a> PartialEq for BonfireLabels<'a>
impl<'a> StructuralPartialEq for BonfireLabels<'a>
Auto Trait Implementations§
impl<'a> Freeze for BonfireLabels<'a>
impl<'a> RefUnwindSafe for BonfireLabels<'a>
impl<'a> Send for BonfireLabels<'a>
impl<'a> Sync for BonfireLabels<'a>
impl<'a> Unpin for BonfireLabels<'a>
impl<'a> UnsafeUnpin for BonfireLabels<'a>
impl<'a> UnwindSafe for BonfireLabels<'a>
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