pub struct Document {
pub items: Vec<Item>,
pub url: Option<Url>,
pub rels: Relations,
pub lang: Option<String>,
}Expand description
A parsed Microformats2 document.
Fields§
§items: Vec<Item>The top-level items in the document.
url: Option<Url>The URL of the document being parsed.
rels: RelationsThe rel-values defined in the document.
lang: Option<String>The language of the document.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Document
impl<'de> Deserialize<'de> for Document
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 FindItemById for Document
impl FindItemById for Document
Source§impl FindItemByProperty for Document
impl FindItemByProperty for Document
Source§fn find_items_with_matching_property_value_by<F>(
&self,
predicate: F,
) -> Vec<(String, Item)>
fn find_items_with_matching_property_value_by<F>( &self, predicate: F, ) -> Vec<(String, Item)>
Finds all items with properties matching the predicate.
Source§fn find_items_with_matching_property_value(
&self,
needle: PropertyValue,
) -> Vec<(String, Item)>
fn find_items_with_matching_property_value( &self, needle: PropertyValue, ) -> Vec<(String, Item)>
Finds all items with a property matching the given value.
Source§impl FindItemByUrl for Document
impl FindItemByUrl for Document
Source§impl IntoIterator for Document
impl IntoIterator for Document
Source§impl LanguageFilter for Document
impl LanguageFilter for Document
impl Eq for Document
impl StructuralPartialEq for Document
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnsafeUnpin for Document
impl UnwindSafe for Document
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> 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.