Struct rss::Source [−][src]
Expand description
Represents the source of an RSS item.
Fields
url: String
The URL of the source.
title: Option<String>
The title of the source.
Implementations
Return the URL of this source.
Examples
use rss::Source;
let mut source = Source::default();
source.set_url("http://example.com");
assert_eq!(source.url(), "http://example.com");
Set the URL of this source.
Examples
use rss::Source;
let mut source = Source::default();
source.set_url("http://example.com");
Return the title of this source.
Examples
use rss::Source;
let mut source = Source::default();
source.set_title("Source Title".to_string());
assert_eq!(source.title(), Some("Source Title"));
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Source
impl UnwindSafe for Source
Blanket Implementations
Mutably borrows from an owned value. Read more