pub struct Link {
pub href: String,
pub url: Option<String>,
pub text: String,
pub title: Option<String>,
pub rel: Vec<LinkRel>,
pub link_type: LinkType,
pub is_nofollow: bool,
pub target: Option<String>,
pub hreflang: Option<String>,
}Expand description
An extracted link
Fields§
§href: StringOriginal href value
url: Option<String>Resolved absolute URL (if possible)
text: StringAnchor text
title: Option<String>Title attribute
rel: Vec<LinkRel>Relationship attributes
link_type: LinkTypeLink type (internal/external)
is_nofollow: boolWhether link is nofollow
target: Option<String>Target attribute (_blank, _self, etc.)
hreflang: Option<String>hreflang attribute
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Link
impl<'de> Deserialize<'de> for Link
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
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnwindSafe for Link
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