pub struct LinkMedia {Show 13 fields
pub href: String,
pub absolute_url: Option<String>,
pub text: String,
pub title: Option<String>,
pub rel: Vec<String>,
pub link_type: LinkType,
pub is_nofollow: bool,
pub is_sponsored: bool,
pub is_ugc: bool,
pub target: Option<String>,
pub download: Option<String>,
pub hreflang: Option<String>,
pub media_type: Option<MediaType>,
}Expand description
Extracted link
Fields§
§href: StringOriginal href
absolute_url: Option<String>Resolved absolute URL
text: StringLink text
title: Option<String>Title attribute
rel: Vec<String>Rel attribute values
link_type: LinkTypeLink type
is_nofollow: boolIs nofollow
is_sponsored: boolIs sponsored
is_ugc: boolIs UGC (user generated content)
target: Option<String>Target attribute
download: Option<String>Download attribute (filename)
hreflang: Option<String>Hreflang
media_type: Option<MediaType>Detected media type (for downloads)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LinkMedia
impl<'de> Deserialize<'de> for LinkMedia
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 LinkMedia
impl RefUnwindSafe for LinkMedia
impl Send for LinkMedia
impl Sync for LinkMedia
impl Unpin for LinkMedia
impl UnwindSafe for LinkMedia
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