Struct atom_syndication::Generator [−][src]
Expand description
Represents the generator of an Atom feed
Fields
value: StringThe name of the generator.
uri: Option<String>The generator URI.
version: Option<String>The generator version.
Implementations
Return the name of the generator.
Examples
use atom_syndication::Generator; let mut generator = Generator::default(); generator.set_value("Feed Generator"); assert_eq!(generator.value(), "Feed Generator");
Set the name of the generator.
Examples
use atom_syndication::Generator; let mut generator = Generator::default(); generator.set_value("Feed Generator"); assert_eq!(generator.value(), "Feed Generator");
Return the URI for the generator.
Examples
use atom_syndication::Generator; let mut generator = Generator::default(); generator.set_uri("http://example.com/generator".to_string()); assert_eq!(generator.uri(), Some("http://example.com/generator"));
Set the URI for the generator.
Examples
use atom_syndication::Generator; let mut generator = Generator::default(); generator.set_uri("http://example.com/generator".to_string());
Return the version of the generator.
Examples
use atom_syndication::Generator; let mut generator = Generator::default(); generator.set_version("1.0".to_string()); assert_eq!(generator.version(), Some("1.0"));
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Generatorimpl UnwindSafe for GeneratorBlanket Implementations
Mutably borrows from an owned value. Read more