Struct microformats_types::Fragment
source · pub struct Fragment {
pub html: String,
pub value: String,
pub lang: Option<String>,
}Expand description
Represents markup and the plain text representation accompanying it. https://microformats.org/wiki/microformats2-parsing#parsing_a_e-_property
Fields§
§html: StringProvides the HTML representation of this fragment.
value: StringProvides the plain-text form of the HTML.
lang: Option<String>Provides the language that this fragment is represented in.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Fragment
impl<'de> Deserialize<'de> for Fragment
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 Ord for Fragment
impl Ord for Fragment
source§impl PartialEq for Fragment
impl PartialEq for Fragment
source§impl PartialOrd for Fragment
impl PartialOrd for Fragment
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for Fragment
impl StructuralPartialEq for Fragment
Auto Trait Implementations§
impl Freeze for Fragment
impl RefUnwindSafe for Fragment
impl Send for Fragment
impl Sync for Fragment
impl Unpin for Fragment
impl UnwindSafe for Fragment
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