Struct earth::feed::Source
[−]
[src]
pub struct Source { pub metadata: Metadata, pub subtitle: Option<Text>, pub generator: Option<Generator>, pub logo: Option<String>, pub icon: Option<String>, }
All metadata for Feed
excepting Feed.entries
.
It corresponds to atom:source
element of :rfc:4287#section-4.2.10
(section 4.2.10).
Fields
metadata: Metadata
subtitle: Option<Text>
A text that conveys a human-readable description or subtitle for a
feed. It corresponds to atom:subtitle
element of
:rfc:4287#section-4.2.12
(section 4.2.12).
generator: Option<Generator>
Identify the agent used to generate a feed, for debugging and other
purposes. It corresponds to atom:generator
element of
:rfc:4287#section-4.2.4
(section 4.2.4).
logo: Option<String>
URI that identifies an image that provides visual identification for a
feed. It corresponds to atom:logo
element of :rfc:4287#section-4.2.8
(section 4.2.8).
icon: Option<String>
URI that identifies an image that provides iconic visual identification
for a feed. It corresponds to atom:icon
element of
:rfc:4287#section-4.2.5
(section 4.2.5).
Methods
impl Source
[src]
fn new_inherited(
id: String,
title: Text,
updated_at: DateTime<FixedOffset>
) -> Source
id: String,
title: Text,
updated_at: DateTime<FixedOffset>
) -> Source
fn new(id: String, title: Text, updated_at: DateTime<FixedOffset>) -> Source
Methods from Deref<Target = Metadata>
Trait Implementations
impl Default for Source
[src]
impl Deref for Source
[src]
type Target = Metadata
The resulting type after dereferencing
fn deref(&self) -> &Metadata
The method called to dereference a value
impl DerefMut for Source
[src]
impl FromSchemaReader for Source
[src]
fn match_child<B: BufRead>(
&mut self,
name: &XmlName,
child: XmlElement<B>
) -> DecodeResult<()>
&mut self,
name: &XmlName,
child: XmlElement<B>
) -> DecodeResult<()>
fn build_from<B: BufRead>(element: XmlElement<B>) -> DecodeResult<Self>
fn read_from<B: BufRead>(&mut self, element: XmlElement<B>) -> DecodeResult<()>
impl Mergeable for Source
[src]
fn merge_with(&mut self, other: Source)
Merge data with the given value to renew itself as a latest state. Read more