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§

source§

impl DublinCoreExtension

source

pub fn contributors(&self) -> &[String]

Return the contributors to the resource.

source

pub fn contributors_mut(&mut self) -> &mut [String]

Return a mutable slice of the contributors to the resource.

source

pub fn set_contributors<V>(&mut self, contributors: V)
where V: Into<Vec<String>>,

Set the contributors to the resource.

source

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.

source

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.

source

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.

source

pub fn creators(&self) -> &[String]

Return the creators of the resource.

source

pub fn creators_mut(&mut self) -> &mut [String]

Return a mutable slice of the creators of the resource.

source

pub fn set_creators<V>(&mut self, creators: V)
where V: Into<Vec<String>>,

Set the creators of the resource.

source

pub fn dates(&self) -> &[String]

Return the times associated with the resource.

source

pub fn dates_mut(&mut self) -> &mut [String]

Return a mutable slice of the times associated with the resource.

source

pub fn set_dates<V>(&mut self, dates: V)
where V: Into<Vec<String>>,

Set the times associated with the resource.

source

pub fn descriptions(&self) -> &[String]

Return the descriptions of the resource.

source

pub fn descriptions_mut(&mut self) -> &mut [String]

Return a mutable slice of the descriptions of the resource.

source

pub fn set_descriptions<V>(&mut self, descriptions: V)
where V: Into<Vec<String>>,

Set the descriptions of the resource.

source

pub fn formats(&self) -> &[String]

Return the file formats, physical mediums, or dimensions of the resource.

source

pub fn formats_mut(&mut self) -> &mut [String]

Return a mutable slice of the file formats, physical mediums, or dimensions of the resource.

source

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.

source

pub fn identifiers(&self) -> &[String]

Return the identifiers of the resource.

source

pub fn identifiers_mut(&mut self) -> &mut [String]

Return a mutable slice of the identifiers of the resource.

source

pub fn set_identifiers<V>(&mut self, identifiers: V)
where V: Into<Vec<String>>,

Set the identifiers of the resource.

source

pub fn languages(&self) -> &[String]

Return the languages of the resource.

source

pub fn languages_mut(&mut self) -> &mut [String]

Return a mutable slice of the languages of the resource.

source

pub fn set_languages<V>(&mut self, languages: V)
where V: Into<Vec<String>>,

Set the languages of the resource.

source

pub fn publishers(&self) -> &[String]

Return the publishers of the resource.

source

pub fn publishers_mut(&mut self) -> &mut [String]

Return a mutable slice of the publishers of the resource.

source

pub fn set_publishers<V>(&mut self, publishers: V)
where V: Into<Vec<String>>,

Set the publishers of the resource.

source

pub fn relations(&self) -> &[String]

Return the related resources.

source

pub fn relations_mut(&mut self) -> &mut [String]

Return a mutable slice of the related resources.

source

pub fn set_relations<V>(&mut self, relations: V)
where V: Into<Vec<String>>,

Set the related resources.

source

pub fn rights(&self) -> &[String]

Return the information about rights held in and over the resource.

source

pub fn rights_mut(&mut self) -> &mut [String]

Return a mutable slice of the information about rights held in and over the resource.

source

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.

source

pub fn sources(&self) -> &[String]

Return the sources of the resource.

source

pub fn sources_mut(&mut self) -> &mut [String]

Return a mutable slice of the sources of the resource.

source

pub fn set_sources<V>(&mut self, sources: V)
where V: Into<Vec<String>>,

Set the sources of the resource.

source

pub fn subjects(&self) -> &[String]

Return the topics of the resource.

source

pub fn subjects_mut(&mut self) -> &mut [String]

Return a mutable slice of the subjects of the resource.

source

pub fn set_subjects<V>(&mut self, subjects: V)
where V: Into<Vec<String>>,

Set the topics of the resource.

source

pub fn titles(&self) -> &[String]

Return the titles of the resource.

source

pub fn titles_mut(&mut self) -> &mut [String]

Return a mutable slice of the titles of the resource.

source

pub fn set_titles<V>(&mut self, titles: V)
where V: Into<Vec<String>>,

Set the titles of the resource.

source

pub fn types(&self) -> &[String]

Return the natures or genres of the resource.

source

pub fn types_mut(&mut self) -> &mut [String]

Return a mutable slice of the natures or genres of the resource.

source

pub fn set_types<V>(&mut self, types: V)
where V: Into<Vec<String>>,

set the natures or genres of the resource.

source§

impl DublinCoreExtension

source

pub fn from_map(map: BTreeMap<String, Vec<Extension>>) -> Self

Creates a DublinCoreExtension using the specified BTreeMap.

Trait Implementations§

source§

impl Clone for DublinCoreExtension

source§

fn clone(&self) -> DublinCoreExtension

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DublinCoreExtension

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for DublinCoreExtension

source§

fn default() -> DublinCoreExtension

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for DublinCoreExtension

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for DublinCoreExtension

source§

fn eq(&self, other: &DublinCoreExtension) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for DublinCoreExtension

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for DublinCoreExtension

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,