pub struct Document {
pub items: Vec<Item>,
pub url: Option<Url>,
pub rels: Relations,
pub lang: Option<String>,
}
Expand description
Represents a parsed document of Microformats items and its relating rel links.
Fields§
§items: Vec<Item>
§url: Option<Url>
§rels: Relations
§lang: Option<String>
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
fn find_items_with_matching_property_value_by<F>( &self, predicate: F, ) -> Vec<(String, Item)>
fn find_items_with_matching_property_value( &self, needle: PropertyValue, ) -> Vec<(String, Item)>
Source§impl FindItemByUrl for Document
impl FindItemByUrl for Document
Source§impl IntoIterator for Document
impl IntoIterator 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 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.