Struct feed_rs::model::Content [−][src]
pub struct Content {
pub body: Option<String>,
pub content_type: Mime,
pub length: Option<u64>,
pub src: Option<Link>,
}Expand description
Content, or link to the content, for a given entry.
Fields
body: Option<String>Atom
- If the type attribute ends in +xml or /xml, then an xml document of this type is contained inline.
- If the type attribute starts with text, then an escaped document of this type is contained inline.
- Otherwise a base64 encoded document of the indicated media type is contained inline.
content_type: MimeType of content
- Atom: The type attribute is either text, html, xhtml, in which case the content element is defined identically to other text constructs.
- RSS 2: Type says what its type is, a standard MIME type
length: Option<u64>RSS 2.0: Length of the content in bytes
src: Option<Link>Source of the content
- Atom: If the src attribute is present, it represents the URI of where the content can be found. The type attribute, if present, is the media type of the content.
- RSS 2.0: where the enclosure is located
Trait Implementations
impl StructuralPartialEq for Content[src]
Auto Trait Implementations
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnwindSafe for Content
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