pub struct Text {
pub text: Rendered,
pub line: bool,
pub common: Common,
pub text_align: TextAlign,
pub text_indent: Option<Length>,
pub style: Style,
pub font: Option<Type>,
pub line_clamp: Option<i64>,
}
Fields
text: Rendered
line: bool
common: Common
text_align: TextAlign
text_indent: Option<Length>
style: Style
font: Option<Type>
line_clamp: Option<i64>
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Text
impl<'de> Deserialize<'de> for Text
sourcefn 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
sourceimpl PartialEq<Text> for Text
impl PartialEq<Text> for Text
impl StructuralPartialEq for Text
Auto Trait Implementations
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more