pub enum Contents {
MarkupContent(MarkupContent),
MarkedString(MarkedString),
MarkedStringList(Vec<MarkedString>),
}Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Contents
impl<'de> Deserialize<'de> for Contents
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<MarkedString> for Contents
impl From<MarkedString> for Contents
Source§fn from(v: MarkedString) -> Self
fn from(v: MarkedString) -> Self
Converts to this type from the input type.
Source§impl From<MarkupContent> for Contents
impl From<MarkupContent> for Contents
Source§fn from(v: MarkupContent) -> Self
fn from(v: MarkupContent) -> Self
Converts to this type from the input type.
Source§impl From<Vec<MarkedString>> for Contents
impl From<Vec<MarkedString>> for Contents
Source§fn from(v: Vec<MarkedString>) -> Self
fn from(v: Vec<MarkedString>) -> Self
Converts to this type from the input type.
impl Eq for Contents
impl StructuralPartialEq for Contents
Auto Trait Implementations§
impl Freeze for Contents
impl RefUnwindSafe for Contents
impl Send for Contents
impl Sync for Contents
impl Unpin for Contents
impl UnsafeUnpin for Contents
impl UnwindSafe for Contents
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