pub enum PropertyValue {
Plain(String),
Url(Url),
Temporal(Value),
Fragment(Fragment),
Item(Item),
Image(Image),
}
Expand description
Represents the multiple forms in which a property’s value is represented.
Variants§
Plain(String)
Represents plain-text, usually stored in properties like “p-name”. It can be displayed directly to the user agent. https://microformats.org/wiki/microformats2-parsing#parsing_a_p-_property
Url(Url)
Represents a linked value.
It’s a companion of Plain
; meant to make detecting of absolute URLs easier.
Temporal(Value)
Represents a compatible datetime parser defined by https://microformats.org/wiki/value-class-pattern#Date_and_time_parsing https://microformats.org/wiki/microformats2-parsing#parsing_a_dt-_property
Fragment(Fragment)
Item(Item)
Represents a structured form of information presented by Microformats as an
Item
. This will usually require a bit more processing before showing it.
https://microformats.org/wiki/microformats2-parsing#parsing_a_u-_property
Image(Image)
Implementations§
Trait Implementations§
source§impl Clone for PropertyValue
impl Clone for PropertyValue
source§fn clone(&self) -> PropertyValue
fn clone(&self) -> PropertyValue
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PropertyValue
impl Debug for PropertyValue
source§impl<'de> Deserialize<'de> for PropertyValue
impl<'de> Deserialize<'de> for PropertyValue
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>,
source§impl From<Duration> for PropertyValue
impl From<Duration> for PropertyValue
source§impl From<Item> for PropertyValue
impl From<Item> for PropertyValue
source§impl From<Stamp> for PropertyValue
impl From<Stamp> for PropertyValue
source§impl From<Url> for PropertyValue
impl From<Url> for PropertyValue
source§impl PartialEq for PropertyValue
impl PartialEq for PropertyValue
source§fn eq(&self, other: &PropertyValue) -> bool
fn eq(&self, other: &PropertyValue) -> bool
self
and other
values to be equal, and is used
by ==
.