pub struct TextProps {
pub text: String,
pub color: Option<String>,
pub background_color: Option<String>,
pub bold: Option<bool>,
pub italic: Option<bool>,
pub underline: Option<bool>,
pub strikethrough: Option<bool>,
pub katex: Option<bool>,
pub code: Option<bool>,
pub ruby: Option<String>,
pub href: Option<String>,
pub favicon: Option<String>,
}
Fields§
§text: String
§color: Option<String>
§background_color: Option<String>
§bold: Option<bool>
§italic: Option<bool>
§underline: Option<bool>
§strikethrough: Option<bool>
§katex: Option<bool>
§code: Option<bool>
§ruby: Option<String>
§href: Option<String>
§favicon: Option<String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextProps
impl<'de> Deserialize<'de> for TextProps
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
impl Eq for TextProps
impl StructuralPartialEq for TextProps
Auto Trait Implementations§
impl Freeze for TextProps
impl RefUnwindSafe for TextProps
impl Send for TextProps
impl Sync for TextProps
impl Unpin for TextProps
impl UnwindSafe for TextProps
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