Struct earth::feed::Metadata
[−]
[src]
pub struct Metadata { pub id: String, pub title: Text, pub links: Vec<Link>, pub updated_at: DateTime<FixedOffset>, pub authors: Vec<Person>, pub contributors: Vec<Person>, pub categories: Vec<Category>, pub rights: Option<Text>, }
Common metadata shared by Source
, Entry
, and Feed
.
Fields
id: String
The URI that conveys a permanent, universally unique identifier for an
entry or feed. It corresponds to atom:id
element of :rfc:4287#section-4.2.6
(section 4.2.6).
title: Text
The human-readable title for an entry or feed.
It corresponds to atom:title
element of :rfc:4287#section-4.2.14
(section 4.2.14).
links: Vec<Link>
The list of :class:Link
objects that define a reference from an entry
or feed to a web resource. It corresponds to atom:link
element of
:rfc:4287#section-4.2.7
(section 4.2.7).
updated_at: DateTime<FixedOffset>
The datetime value with a fixed timezone offset, indicating the most
recent instant in time when the entry was modified in a way the
publisher considers significant. Therefore, not all modifications
necessarily result in a changed updated_at
value.
It corresponds to atom:updated
element of :rfc:4287#section-4.2.15
(section 4.2.15).
The list of Person
values which indicates the author of the entry or
feed. It corresponds to atom:author
element of :rfc:4287#section-4.2.1
(section 4.2.1).
contributors: Vec<Person>
The list of Person
values which indicates a person or other entity
who contributed to the entry or feed. It corresponds to
atom:contributor
element of :rfc:4287#section-4.2.3
(section 4.2.3).
categories: Vec<Category>
The list of Category
values that conveys information about categories
associated with an entry or feed. It corresponds to atom:category
element of :rfc:4287#section-4.2.2
(section 4.2.2).
rights: Option<Text>
The text field that conveys information about rights held in and of an
entry or feed. It corresponds to atom:rights
element of
:rfc:4287#section-4.2.10
(section 4.2.10).
Methods
impl Metadata
[src]
fn new_inherited(
id: String,
title: Text,
updated_at: DateTime<FixedOffset>
) -> Metadata
id: String,
title: Text,
updated_at: DateTime<FixedOffset>
) -> Metadata
Trait Implementations
impl Default for Metadata
[src]
impl FromSchemaReader for Metadata
[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 Entity for Metadata
[src]
impl Mergeable for Metadata
[src]
fn merge_with(&mut self, other: Metadata)
Merge data with the given value to renew itself as a latest state. Read more