pub struct Text {
pub children: Vec<Text>,
pub locale: Option<StylesLocale>,
pub semantics_label: Option<String>,
pub spell_out: Option<bool>,
pub style: Option<StylesTextStyle>,
pub text_align: Option<TextTextAlign>,
pub type_: Value,
pub value: String,
}Expand description
Element of type Text
Fields§
§children: Vec<Text>Additional texts to add after this text.
locale: Option<StylesLocale>§semantics_label: Option<String>The value to explain a different semantics
spell_out: Option<bool>Whether the assistive technologies should spell out this text character by character
style: Option<StylesTextStyle>§text_align: Option<TextTextAlign>The text alignment
type_: ValueThe identifier of the component
value: Stringthe value displayed in the element
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Text
impl<'de> Deserialize<'de> for Text
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
Source§impl From<Text> for LenraComponent
impl From<Text> for LenraComponent
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnsafeUnpin for Text
impl UnwindSafe for Text
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