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§impl Serialize for PropertyValue
impl Serialize for PropertyValue
impl Eq for PropertyValue
impl StructuralPartialEq for PropertyValue
Auto Trait Implementations§
impl Freeze for PropertyValue
impl RefUnwindSafe for PropertyValue
impl Send for PropertyValue
impl Sync for PropertyValue
impl Unpin for PropertyValue
impl UnwindSafe for PropertyValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.