pub struct TranslatedStrings {
pub text: Option<String>,
pub placeholder: Option<String>,
pub alt: Option<String>,
pub tooltip: Option<String>,
}Expand description
What an element shows once its catalogue key has been resolved.
Each field is None exactly when the element has no such string at all;
a string the markup authored is never dropped, only replaced.
Fields§
§text: Option<String>The element’s text: Attributes::text after translation.
placeholder: Option<String>A text entry’s prompt: Attributes::placeholder after translation.
alt: Option<String>An image’s alternative text: Attributes::alt after translation.
tooltip: Option<String>The popup body of the wrapping <tooltip>, which carries its own key.
Auto Trait Implementations§
impl Freeze for TranslatedStrings
impl RefUnwindSafe for TranslatedStrings
impl Send for TranslatedStrings
impl Sync for TranslatedStrings
impl Unpin for TranslatedStrings
impl UnsafeUnpin for TranslatedStrings
impl UnwindSafe for TranslatedStrings
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.