pub struct Link {
pub href: String,
pub rel: Option<String>,
pub media_type: Option<String>,
pub href_lang: Option<String>,
pub title: Option<String>,
pub length: Option<u64>,
}
Expand description
Represents a link to an associated resource for the feed or entry.
Fields§
§href: String
Link to additional content
- Atom: The URI of the referenced resource (typically a Web page).
- RSS 2: The URL to the HTML website corresponding to the channel or item.
- JSON Feed: the URI to the attachment, feed etc
rel: Option<String>
A single link relationship type.
media_type: Option<String>
Indicates the media type of the resource.
href_lang: Option<String>
Indicates the language of the referenced resource.
title: Option<String>
Human readable information about the link, typically for display purposes.
length: Option<u64>
The length of the resource, in bytes.
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
impl Eq for Link
impl StructuralPartialEq for Link
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