Struct microformats_types::Document
source · 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)