#[non_exhaustive]pub struct SpanData {
pub bg_color: Option<StrTendril>,
pub color: Option<StrTendril>,
pub spoiler: Option<StrTendril>,
pub maths: Option<StrTendril>,
}
Available on crate feature
matrix
only.Expand description
The supported data of a <span>
HTML element.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.bg_color: Option<StrTendril>
data-mx-bg-color
, the background color of the text.
color: Option<StrTendril>
data-mx-color
, the foreground color of the text.
spoiler: Option<StrTendril>
data-mx-spoiler
, a Matrix spoiler message.
The value is the reason of the spoiler. If the string is empty, this is a spoiler without a reason.
maths: Option<StrTendril>
data-mx-maths
, an inline Matrix mathematical message.
The value is the mathematical notation in LaTeX format.
If this attribute is present, the content of the span is the fallback representation of the mathematical notation.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SpanData
impl !RefUnwindSafe for SpanData
impl !Send for SpanData
impl !Sync for SpanData
impl Unpin for SpanData
impl UnwindSafe for SpanData
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)