Struct feed_rs::model::Link [−][src]
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: StringLink 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
impl StructuralPartialEq for Link[src]
Auto Trait Implementations
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnwindSafe for Link
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more