Struct microformats_types::Relation
source · pub struct Relation {
pub rels: Vec<String>,
pub hreflang: Option<String>,
pub media: Option<String>,
pub title: Option<String>,
pub type: Option<String>,
pub text: Option<String>,
}
Fields§
§rels: Vec<String>
§hreflang: Option<String>
§media: Option<String>
§title: Option<String>
§type: Option<String>
§text: Option<String>
Implementations§
source§impl Relation
impl Relation
sourcepub fn merge_with(&mut self, other: Self)
pub fn merge_with(&mut self, other: Self)
Fuses the values of the other relation with this one.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Relation
impl<'de> Deserialize<'de> for Relation
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 Ord for Relation
impl Ord for Relation
source§impl PartialEq for Relation
impl PartialEq for Relation
source§impl PartialOrd for Relation
impl PartialOrd for Relation
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Relation
impl StructuralPartialEq for Relation
Auto Trait Implementations§
impl Freeze for Relation
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnwindSafe for Relation
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