pub enum KnownClass {
Entry,
Cite,
Card,
Feed,
Event,
Product,
Adr,
Geo,
Resume,
Review,
Recipe,
}
Expand description
A concrete reference of the supported Microformats class by this library.
Variants§
Entry
Represents a general container for content. https://microformats.org/wiki/h-entry
Cite
Represents a rewference to content at a different location. https://microformats.org/wiki/h-cite
Card
Represents a contact card or vCard. https://microformats.org/wiki/h-card
Feed
https://microformats.org/wiki/h-feed
Event
https://microformats.org/wiki/h-event
Product
https://microformats.org/wiki/h-product
Adr
https://microformats.org/wiki/h-adr
Geo
https://microformats.org/wiki/h-geo
Resume
https://microformats.org/wiki/h-resume
Review
https://microformats.org/wiki/h-review
Recipe
https://microformats.org/wiki/h-recipe
Trait Implementations§
Source§impl Clone for KnownClass
impl Clone for KnownClass
Source§fn clone(&self) -> KnownClass
fn clone(&self) -> KnownClass
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for KnownClass
impl Debug for KnownClass
Source§impl<'de> Deserialize<'de> for KnownClass
impl<'de> Deserialize<'de> for KnownClass
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 Display for KnownClass
impl Display for KnownClass
Source§impl From<KnownClass> for Class
impl From<KnownClass> for Class
Source§fn from(kc: KnownClass) -> Self
fn from(kc: KnownClass) -> Self
Converts to this type from the input type.
Source§impl FromStr for KnownClass
impl FromStr for KnownClass
Source§impl Ord for KnownClass
impl Ord for KnownClass
Source§fn cmp(&self, other: &KnownClass) -> Ordering
fn cmp(&self, other: &KnownClass) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KnownClass
impl PartialEq for KnownClass
Source§impl PartialOrd for KnownClass
impl PartialOrd for KnownClass
Source§impl Serialize for KnownClass
impl Serialize for KnownClass
impl Eq for KnownClass
impl StructuralPartialEq for KnownClass
Auto Trait Implementations§
impl Freeze for KnownClass
impl RefUnwindSafe for KnownClass
impl Send for KnownClass
impl Sync for KnownClass
impl Unpin for KnownClass
impl UnwindSafe for KnownClass
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
Compare self to
key
and return true
if they are equal.