Struct rss::extension::dublincore::DublinCoreExtension
source · [−]pub struct DublinCoreExtension {Show 15 fields
pub contributors: Vec<String>,
pub coverages: Vec<String>,
pub creators: Vec<String>,
pub dates: Vec<String>,
pub descriptions: Vec<String>,
pub formats: Vec<String>,
pub identifiers: Vec<String>,
pub languages: Vec<String>,
pub publishers: Vec<String>,
pub relations: Vec<String>,
pub rights: Vec<String>,
pub sources: Vec<String>,
pub subjects: Vec<String>,
pub titles: Vec<String>,
pub types: Vec<String>,
}
Expand description
A Dublin Core element extension.
Fields
contributors: Vec<String>
An entity responsible for making contributions to the resource.
coverages: Vec<String>
The spatial or temporal topic of the resource, the spatial applicability of the resource, or the jurisdiction under which the resource is relevant.
creators: Vec<String>
An entity primarily responsible for making the resource.
dates: Vec<String>
A point or period of time associated with an event in the lifecycle of the resource.
descriptions: Vec<String>
An account of the resource.
formats: Vec<String>
The file format, physical medium, or dimensions of the resource.
identifiers: Vec<String>
An unambiguous reference to the resource within a given context.
languages: Vec<String>
A language of the resource.
publishers: Vec<String>
An entity responsible for making the resource available.
relations: Vec<String>
A related resource.
rights: Vec<String>
Information about rights held in and over the resource.
sources: Vec<String>
A related resource from which the described resource is derived.
subjects: Vec<String>
The topic of the resource.
titles: Vec<String>
A name given to the resource.
types: Vec<String>
The nature or genre of the resource.
Implementations
sourceimpl DublinCoreExtension
impl DublinCoreExtension
sourcepub fn contributors(&self) -> &[String]
pub fn contributors(&self) -> &[String]
Return the contributors to the resource.
sourcepub fn contributors_mut(&mut self) -> &mut [String]
pub fn contributors_mut(&mut self) -> &mut [String]
Return a mutable slice of the contributors to the resource.
sourcepub fn set_contributors<V>(&mut self, contributors: V) where
V: Into<Vec<String>>,
pub fn set_contributors<V>(&mut self, contributors: V) where
V: Into<Vec<String>>,
Set the contributors to the resource.
sourcepub fn coverages(&self) -> &[String]
pub fn coverages(&self) -> &[String]
Return the spatial or temporal topics of the resource, the spatial applicabilities of the resource, or the jurisdictions under which the resource is relevant.
sourcepub fn coverages_mut(&mut self) -> &mut [String]
pub fn coverages_mut(&mut self) -> &mut [String]
Return a mutable slice of the spatial or temporal topics of the resource, the spatial applicabilities of the resource, or the jurisdictions under which the resource is relevant.
sourcepub fn set_coverages<V>(&mut self, coverages: V) where
V: Into<Vec<String>>,
pub fn set_coverages<V>(&mut self, coverages: V) where
V: Into<Vec<String>>,
Set the spatial or temporal topics of the resource, the spatial applicabilities of the resource, or the jurisdictions under which the resource is relevant.
sourcepub fn creators_mut(&mut self) -> &mut [String]
pub fn creators_mut(&mut self) -> &mut [String]
Return a mutable slice of the creators of the resource.
sourcepub fn set_creators<V>(&mut self, creators: V) where
V: Into<Vec<String>>,
pub fn set_creators<V>(&mut self, creators: V) where
V: Into<Vec<String>>,
Set the creators of the resource.
sourcepub fn dates_mut(&mut self) -> &mut [String]
pub fn dates_mut(&mut self) -> &mut [String]
Return a mutable slice of the times associated with the resource.
sourcepub fn set_dates<V>(&mut self, dates: V) where
V: Into<Vec<String>>,
pub fn set_dates<V>(&mut self, dates: V) where
V: Into<Vec<String>>,
Set the times associated with the resource.
sourcepub fn descriptions(&self) -> &[String]
pub fn descriptions(&self) -> &[String]
Return the descriptions of the resource.
sourcepub fn descriptions_mut(&mut self) -> &mut [String]
pub fn descriptions_mut(&mut self) -> &mut [String]
Return a mutable slice of the descriptions of the resource.
sourcepub fn set_descriptions<V>(&mut self, descriptions: V) where
V: Into<Vec<String>>,
pub fn set_descriptions<V>(&mut self, descriptions: V) where
V: Into<Vec<String>>,
Set the descriptions of the resource.
sourcepub fn formats(&self) -> &[String]
pub fn formats(&self) -> &[String]
Return the file formats, physical mediums, or dimensions of the resource.
sourcepub fn formats_mut(&mut self) -> &mut [String]
pub fn formats_mut(&mut self) -> &mut [String]
Return a mutable slice of the file formats, physical mediums, or dimensions of the resource.
sourcepub fn set_formats<V>(&mut self, formats: V) where
V: Into<Vec<String>>,
pub fn set_formats<V>(&mut self, formats: V) where
V: Into<Vec<String>>,
Set the file formats, physical mediums, or dimensions of the resource.
sourcepub fn identifiers(&self) -> &[String]
pub fn identifiers(&self) -> &[String]
Return the identifiers of the resource.
sourcepub fn identifiers_mut(&mut self) -> &mut [String]
pub fn identifiers_mut(&mut self) -> &mut [String]
Return a mutable slice of the identifiers of the resource.
sourcepub fn set_identifiers<V>(&mut self, identifiers: V) where
V: Into<Vec<String>>,
pub fn set_identifiers<V>(&mut self, identifiers: V) where
V: Into<Vec<String>>,
Set the identifiers of the resource.
sourcepub fn languages_mut(&mut self) -> &mut [String]
pub fn languages_mut(&mut self) -> &mut [String]
Return a mutable slice of the languages of the resource.
sourcepub fn set_languages<V>(&mut self, languages: V) where
V: Into<Vec<String>>,
pub fn set_languages<V>(&mut self, languages: V) where
V: Into<Vec<String>>,
Set the languages of the resource.
sourcepub fn publishers(&self) -> &[String]
pub fn publishers(&self) -> &[String]
Return the publishers of the resource.
sourcepub fn publishers_mut(&mut self) -> &mut [String]
pub fn publishers_mut(&mut self) -> &mut [String]
Return a mutable slice of the publishers of the resource.
sourcepub fn set_publishers<V>(&mut self, publishers: V) where
V: Into<Vec<String>>,
pub fn set_publishers<V>(&mut self, publishers: V) where
V: Into<Vec<String>>,
Set the publishers of the resource.
sourcepub fn relations_mut(&mut self) -> &mut [String]
pub fn relations_mut(&mut self) -> &mut [String]
Return a mutable slice of the related resources.
sourcepub fn set_relations<V>(&mut self, relations: V) where
V: Into<Vec<String>>,
pub fn set_relations<V>(&mut self, relations: V) where
V: Into<Vec<String>>,
Set the related resources.
sourcepub fn rights(&self) -> &[String]
pub fn rights(&self) -> &[String]
Return the information about rights held in and over the resource.
sourcepub fn rights_mut(&mut self) -> &mut [String]
pub fn rights_mut(&mut self) -> &mut [String]
Return a mutable slice of the information about rights held in and over the resource.
sourcepub fn set_rights<V>(&mut self, rights: V) where
V: Into<Vec<String>>,
pub fn set_rights<V>(&mut self, rights: V) where
V: Into<Vec<String>>,
Set the information about rights held in and over the resource.
sourcepub fn sources_mut(&mut self) -> &mut [String]
pub fn sources_mut(&mut self) -> &mut [String]
Return a mutable slice of the sources of the resource.
sourcepub fn set_sources<V>(&mut self, sources: V) where
V: Into<Vec<String>>,
pub fn set_sources<V>(&mut self, sources: V) where
V: Into<Vec<String>>,
Set the sources of the resource.
sourcepub fn subjects_mut(&mut self) -> &mut [String]
pub fn subjects_mut(&mut self) -> &mut [String]
Return a mutable slice of the subjects of the resource.
sourcepub fn set_subjects<V>(&mut self, subjects: V) where
V: Into<Vec<String>>,
pub fn set_subjects<V>(&mut self, subjects: V) where
V: Into<Vec<String>>,
Set the topics of the resource.
sourcepub fn titles_mut(&mut self) -> &mut [String]
pub fn titles_mut(&mut self) -> &mut [String]
Return a mutable slice of the titles of the resource.
sourcepub fn set_titles<V>(&mut self, titles: V) where
V: Into<Vec<String>>,
pub fn set_titles<V>(&mut self, titles: V) where
V: Into<Vec<String>>,
Set the titles of the resource.
Trait Implementations
sourceimpl Clone for DublinCoreExtension
impl Clone for DublinCoreExtension
sourcefn clone(&self) -> DublinCoreExtension
fn clone(&self) -> DublinCoreExtension
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DublinCoreExtension
impl Debug for DublinCoreExtension
sourceimpl Default for DublinCoreExtension
impl Default for DublinCoreExtension
sourcefn default() -> DublinCoreExtension
fn default() -> DublinCoreExtension
Returns the “default value” for a type. Read more
sourceimpl PartialEq<DublinCoreExtension> for DublinCoreExtension
impl PartialEq<DublinCoreExtension> for DublinCoreExtension
sourcefn eq(&self, other: &DublinCoreExtension) -> bool
fn eq(&self, other: &DublinCoreExtension) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DublinCoreExtension) -> bool
fn ne(&self, other: &DublinCoreExtension) -> bool
This method tests for !=
.
impl StructuralPartialEq for DublinCoreExtension
Auto Trait Implementations
impl RefUnwindSafe for DublinCoreExtension
impl Send for DublinCoreExtension
impl Sync for DublinCoreExtension
impl Unpin for DublinCoreExtension
impl UnwindSafe for DublinCoreExtension
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more