diff --git a/src/category.rs b/src/category.rs index 99aab7b1ac..30e3460822 100644 --- a/src/category.rs +++ b/src/category.rs @@ -24,9 +24,9 @@ use crate::util::element_text; #[cfg_attr(feature = "builders", builder(setter(into), default))] pub struct Category { /// The name of the category. - name: String, + pub name: String, /// The domain for the category. - domain: Option, + pub domain: Option, } impl Category { diff --git a/src/channel.rs b/src/channel.rs index f5abe26e80..0f36997dc1 100644 --- a/src/channel.rs +++ b/src/channel.rs @@ -36,55 +36,55 @@ use crate::util::element_text; #[cfg_attr(feature = "builders", builder(setter(into), default))] pub struct Channel { /// The name of the channel. - title: String, + pub title: String, /// The URL for the website corresponding to the channel. - link: String, + pub link: String, /// A description of the channel. - description: String, + pub description: String, /// The language of the channel. - language: Option, + pub language: Option, /// The copyright notice for the channel. - copyright: Option, + pub copyright: Option, /// The email address for the managing editor. - managing_editor: Option, + pub managing_editor: Option, /// The email address for the webmaster. - webmaster: Option, + pub webmaster: Option, /// The publication date for the content of the channel as an RFC822 timestamp. - pub_date: Option, + pub pub_date: Option, /// The date that the contents of the channel last changed as an RFC822 timestamp. - last_build_date: Option, + pub last_build_date: Option, /// The categories the channel belongs to. - categories: Vec, + pub categories: Vec, /// A string indicating the program used to generate the channel. - generator: Option, + pub generator: Option, /// A URL that points to the documentation for the RSS format. - docs: Option, + pub docs: Option, /// The cloud to register with to be notified of updates to the channel. - cloud: Option, + pub cloud: Option, /// The PICS rating for the channel. - rating: Option, + pub rating: Option, /// The number of minutes the channel can be cached before refreshing. - ttl: Option, + pub ttl: Option, /// An image that can be displayed with the channel. - image: Option, + pub image: Option, /// A text input box that can be displayed with the channel. - text_input: Option, + pub text_input: Option, /// A hint to tell the aggregator which hours it can skip. - skip_hours: Vec, + pub skip_hours: Vec, /// A hint to tell the aggregator which days it can skip. - skip_days: Vec, + pub skip_days: Vec, /// The items in the channel. - items: Vec, + pub items: Vec, /// The extensions for the channel. - extensions: ExtensionMap, + pub extensions: ExtensionMap, /// The iTunes extension for the channel. - itunes_ext: Option, + pub itunes_ext: Option, /// The Dublin Core extension for the channel. - dublin_core_ext: Option, + pub dublin_core_ext: Option, /// The Syndication extension for the channel. - syndication_ext: Option, + pub syndication_ext: Option, /// The namespaces present in the RSS tag. - namespaces: HashMap, + pub namespaces: HashMap, } impl Channel { diff --git a/src/cloud.rs b/src/cloud.rs index eda786d152..2f9bf7b14d 100644 --- a/src/cloud.rs +++ b/src/cloud.rs @@ -23,15 +23,15 @@ use crate::toxml::ToXml; #[cfg_attr(feature = "builders", builder(setter(into), default))] pub struct Cloud { /// The domain to register with. - domain: String, + pub domain: String, /// The port to register with. - port: String, + pub port: String, /// The path to register with. - path: String, + pub path: String, /// The procedure to register with. - register_procedure: String, + pub register_procedure: String, /// The protocol to register with. - protocol: String, + pub protocol: String, } impl Cloud { diff --git a/src/enclosure.rs b/src/enclosure.rs index ed4c511a61..ddff5f455a 100644 --- a/src/enclosure.rs +++ b/src/enclosure.rs @@ -23,11 +23,11 @@ use crate::toxml::ToXml; #[cfg_attr(feature = "builders", builder(setter(into), default))] pub struct Enclosure { /// The URL of the enclosure. - url: String, + pub url: String, /// The length of the enclosure in bytes. - length: String, + pub length: String, /// The MIME type of the enclosure. - mime_type: String, + pub mime_type: String, } impl Enclosure { diff --git a/src/extension/dublincore.rs b/src/extension/dublincore.rs index 4224c209b5..8b84cd3463 100644 --- a/src/extension/dublincore.rs +++ b/src/extension/dublincore.rs @@ -26,36 +26,36 @@ pub const NAMESPACE: &str = "http://purl.org/dc/elements/1.1/"; #[cfg_attr(feature = "builders", builder(setter(into), default))] pub struct DublinCoreExtension { /// An entity responsible for making contributions to the resource. - contributors: Vec, + pub contributors: Vec, /// The spatial or temporal topic of the resource, the spatial applicability of the resource, /// or the jurisdiction under which the resource is relevant. - coverages: Vec, + pub coverages: Vec, /// An entity primarily responsible for making the resource. - creators: Vec, + pub creators: Vec, /// A point or period of time associated with an event in the lifecycle of the resource. - dates: Vec, + pub dates: Vec, /// An account of the resource. - descriptions: Vec, + pub descriptions: Vec, /// The file format, physical medium, or dimensions of the resource. - formats: Vec, + pub formats: Vec, /// An unambiguous reference to the resource within a given context. - identifiers: Vec, + pub identifiers: Vec, /// A language of the resource. - languages: Vec, + pub languages: Vec, /// An entity responsible for making the resource available. - publishers: Vec, + pub publishers: Vec, /// A related resource. - relations: Vec, + pub relations: Vec, /// Information about rights held in and over the resource. - rights: Vec, + pub rights: Vec, /// A related resource from which the described resource is derived. - sources: Vec, + pub sources: Vec, /// The topic of the resource. - subjects: Vec, + pub subjects: Vec, /// A name given to the resource. - titles: Vec, + pub titles: Vec, /// The nature or genre of the resource. - types: Vec, + pub types: Vec, } impl DublinCoreExtension { diff --git a/src/extension/itunes/itunes_category.rs b/src/extension/itunes/itunes_category.rs index b7a9b70ce8..d1f17c2de5 100644 --- a/src/extension/itunes/itunes_category.rs +++ b/src/extension/itunes/itunes_category.rs @@ -20,11 +20,11 @@ use crate::toxml::ToXml; #[cfg_attr(feature = "builders", builder(setter(into), default))] pub struct ITunesCategory { /// The name of the category. - text: String, + pub text: String, // This is contained within a Box to ensure it gets allocated on the heap to prevent an // infinite size. /// An optional subcategory for the category. - subcategory: Option>, + pub subcategory: Option>, } impl ITunesCategory { diff --git a/src/extension/itunes/itunes_channel_extension.rs b/src/extension/itunes/itunes_channel_extension.rs index 2b7d11c943..e353f7da76 100644 --- a/src/extension/itunes/itunes_channel_extension.rs +++ b/src/extension/itunes/itunes_channel_extension.rs @@ -25,32 +25,32 @@ use crate::toxml::{ToXml, WriterExt}; #[cfg_attr(feature = "builders", builder(setter(into), default))] pub struct ITunesChannelExtension { /// The author of the podcast. - author: Option, + pub author: Option, /// Specifies if the podcast should be prevented from appearing in the iTunes Store. A value of /// `Yes` indicates that the podcast should not show up in the iTunes Store. All other values /// are ignored. - block: Option, + pub block: Option, /// The iTunes categories the podcast belongs to. - categories: Vec, + pub categories: Vec, /// The artwork for the podcast. - image: Option, + pub image: Option, /// Specifies whether the podcast contains explicit content. A value of `Yes`, `Explicit`, or /// `True` indicates that the podcast contains explicit content. A value of `Clean`, `No`, /// `False` inidicates that none of the episodes contain explicit content. - explicit: Option, + pub explicit: Option, /// Specifies whether the podcast is complete and no new episodes will be posted. A value of /// `Yes` indicates that the podcast is complete. - complete: Option, + pub complete: Option, /// The new URL where the podcast is located. - new_feed_url: Option, + pub new_feed_url: Option, /// The contact information for the owner of the podcast. - owner: Option, + pub owner: Option, /// A description of the podcast. - subtitle: Option, + pub subtitle: Option, /// A summary of the podcast. - summary: Option, + pub summary: Option, /// Keywords for the podcast. The string contains a comma separated list of keywords. - keywords: Option, + pub keywords: Option, } impl ITunesChannelExtension { diff --git a/src/extension/itunes/itunes_item_extension.rs b/src/extension/itunes/itunes_item_extension.rs index dadc182f57..dfa8feca0b 100644 --- a/src/extension/itunes/itunes_item_extension.rs +++ b/src/extension/itunes/itunes_item_extension.rs @@ -24,31 +24,31 @@ use crate::toxml::{ToXml, WriterExt}; #[cfg_attr(feature = "builders", builder(setter(into), default))] pub struct ITunesItemExtension { /// The author of the podcast episode. - author: Option, + pub author: Option, /// Specifies if the podcast episode should be prevented from appearing in the iTunes Store. A /// value of `Yes` indicates that the episode should not show up in the iTunes Store. All other /// values are ignored. - block: Option, + pub block: Option, /// The artwork for the podcast episode. - image: Option, + pub image: Option, /// The podcast episode duration in one of the following formats: HH:MM:SS, H:MM:SS, MM:SS, /// M:SS. - duration: Option, + pub duration: Option, /// Specifies whether the podcast episode contains explicit content. A value of `Yes`, /// `Explicit`, or `True` indicates that the episode contains explicit content. A value of /// `Clean`, `No`, `False` inidicates that episode does not contain explicit content. - explicit: Option, + pub explicit: Option, /// Specifies whether the podcast episode contains embedded closed captioning. A value of `Yes` /// indicates that it does. Any other value indicates that it does not. - closed_captioned: Option, + pub closed_captioned: Option, /// A value used to override the default sorting order for episodes. - order: Option, + pub order: Option, /// A description of the podcast episode. - subtitle: Option, + pub subtitle: Option, /// A summary of the podcast episode. - summary: Option, + pub summary: Option, /// Keywords for the podcast. The string contains a comma separated list of keywords. - keywords: Option, + pub keywords: Option, } impl ITunesItemExtension { diff --git a/src/extension/itunes/itunes_owner.rs b/src/extension/itunes/itunes_owner.rs index 6e8afb778b..c6c71b0dda 100644 --- a/src/extension/itunes/itunes_owner.rs +++ b/src/extension/itunes/itunes_owner.rs @@ -20,9 +20,9 @@ use crate::toxml::{ToXml, WriterExt}; #[cfg_attr(feature = "builders", builder(setter(into), default))] pub struct ITunesOwner { /// The name of the owner. - name: Option, + pub name: Option, /// The email of the owner. - email: Option, + pub email: Option, } impl ITunesOwner { diff --git a/src/extension/mod.rs b/src/extension/mod.rs index 46ca726944..403ab71e76 100644 --- a/src/extension/mod.rs +++ b/src/extension/mod.rs @@ -37,14 +37,14 @@ pub type ExtensionMap = HashMap>>; #[cfg_attr(feature = "builders", builder(setter(into), default))] pub struct Extension { /// The qualified name of the extension element. - name: String, + pub name: String, /// The content of the extension element. - value: Option, + pub value: Option, /// The attributes for the extension element. - attrs: HashMap, + pub attrs: HashMap, /// The children of the extension element. This is a map of local names to child /// elements. - children: HashMap>, + pub children: HashMap>, } impl Extension { diff --git a/src/extension/syndication.rs b/src/extension/syndication.rs index 9f929110bb..c635321867 100644 --- a/src/extension/syndication.rs +++ b/src/extension/syndication.rs @@ -69,11 +69,11 @@ impl fmt::Display for UpdatePeriod { #[cfg_attr(feature = "builders", builder(setter(into), default))] pub struct SyndicationExtension { /// The refresh period for this channel - period: UpdatePeriod, + pub period: UpdatePeriod, /// Number of periods between refreshes - frequency: u32, + pub frequency: u32, /// Timestamp from which the refresh periods are calculated - base: String, + pub base: String, } impl SyndicationExtension { diff --git a/src/guid.rs b/src/guid.rs index 068589a5ed..817e9c81b1 100644 --- a/src/guid.rs +++ b/src/guid.rs @@ -24,9 +24,9 @@ use crate::util::element_text; #[cfg_attr(feature = "builders", builder(setter(into), default))] pub struct Guid { /// The value of the GUID. - value: String, + pub value: String, /// Indicates if the GUID is a permalink. - permalink: bool, + pub permalink: bool, } impl Guid { diff --git a/src/image.rs b/src/image.rs index 09c6de09c8..710dbb40d5 100644 --- a/src/image.rs +++ b/src/image.rs @@ -24,17 +24,17 @@ use crate::util::element_text; #[cfg_attr(feature = "builders", builder(setter(into), default))] pub struct Image { /// The URL of the image. - url: String, + pub url: String, /// A description of the image. This is used in the HTML `alt` attribute. - title: String, + pub title: String, /// The URL that the image links to. - link: String, + pub link: String, /// The width of the image. - width: Option, + pub width: Option, /// The height of the image. - height: Option, + pub height: Option, /// The text for the HTML `title` attribute of the link formed around the image. - description: Option, + pub description: Option, } impl Image { diff --git a/src/item.rs b/src/item.rs index 5e13066707..934e816fdd 100644 --- a/src/item.rs +++ b/src/item.rs @@ -33,33 +33,33 @@ use std::collections::HashMap; #[cfg_attr(feature = "builders", builder(setter(into), default))] pub struct Item { /// The title of the item. - title: Option, + pub title: Option, /// The URL of the item. - link: Option, + pub link: Option, /// The item synopsis. - description: Option, + pub description: Option, /// The email address of author of the item. - author: Option, + pub author: Option, /// The categories the item belongs to. - categories: Vec, + pub categories: Vec, /// The URL for the comments page of the item. - comments: Option, + pub comments: Option, /// The description of a media object that is attached to the item. - enclosure: Option, + pub enclosure: Option, /// A unique identifier for the item. - guid: Option, + pub guid: Option, /// The date the item was published as an RFC822 timestamp. - pub_date: Option, + pub pub_date: Option, /// The RSS channel the item came from. - source: Option, + pub source: Option, /// The HTML contents of the item. - content: Option, + pub content: Option, /// The extensions for the item. - extensions: ExtensionMap, + pub extensions: ExtensionMap, /// The iTunes extension for the item. - itunes_ext: Option, + pub itunes_ext: Option, /// The Dublin Core extension for the item. - dublin_core_ext: Option, + pub dublin_core_ext: Option, } impl Item { diff --git a/src/source.rs b/src/source.rs index 93f6f57c5d..fd4471b831 100644 --- a/src/source.rs +++ b/src/source.rs @@ -24,9 +24,9 @@ use crate::util::element_text; #[cfg_attr(feature = "builders", builder(setter(into), default))] pub struct Source { /// The URL of the source. - url: String, + pub url: String, /// The title of the source. - title: Option, + pub title: Option, } impl Source { diff --git a/src/textinput.rs b/src/textinput.rs index 44660c814a..d8c8dcbb64 100644 --- a/src/textinput.rs +++ b/src/textinput.rs @@ -24,13 +24,13 @@ use crate::util::element_text; #[cfg_attr(feature = "builders", builder(setter(into), default))] pub struct TextInput { /// The label of the Submit button for the text input. - title: String, + pub title: String, /// A description of the text input. - description: String, + pub description: String, /// The name of the text object. - name: String, + pub name: String, /// The URL of the CGI script that processes the text input request. - link: String, + pub link: String, } impl TextInput {