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 PartialOrd for Relation
impl PartialOrd for Relation
impl 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
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
)