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: Mime
Type 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
Auto Trait Implementations
impl RefUnwindSafe for Content
impl UnwindSafe for Content
Blanket Implementations
Mutably borrows from an owned value. Read more