#[non_exhaustive]pub struct SpanData {
pub bg_color: Option<StrTendril>,
pub color: Option<StrTendril>,
pub spoiler: 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.
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