[−][src]Struct rss::extension::syndication::SyndicationExtension
An RSS syndication element extension.
Fields
period: UpdatePeriod
The refresh period for this channel
frequency: u32
Number of periods between refreshes
base: String
Timestamp from which the refresh periods are calculated
Implementations
impl SyndicationExtension
[src]
pub fn base(&self) -> &str
[src]
Retrieve the base timestamp from which the refresh periods are calculated
pub fn set_base(&mut self, base: &str)
[src]
Set the base from which the refresh periods are calculated
pub fn frequency(&self) -> u32
[src]
Retrieve the number of periods between refreshes
pub fn set_frequency(&mut self, frequency: u32)
[src]
Set the number of periods between refreshes
pub fn period(&self) -> &UpdatePeriod
[src]
Retrieve the refresh period for this channel
pub fn set_period(&mut self, period: UpdatePeriod)
[src]
Set the refresh period for this channel
pub fn to_xml<W: Write>(
&self,
namespaces: &HashMap<String, String>,
writer: &mut Writer<W>
) -> Result<(), XmlError>
[src]
&self,
namespaces: &HashMap<String, String>,
writer: &mut Writer<W>
) -> Result<(), XmlError>
Serialises this extension to the nominated writer
impl SyndicationExtension
[src]
pub fn from_map(map: HashMap<String, Vec<Extension>>) -> Self
[src]
Creates a SyndicationExtension
using the specified HashMap
.
Trait Implementations
impl Clone for SyndicationExtension
[src]
pub fn clone(&self) -> SyndicationExtension
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SyndicationExtension
[src]
impl Default for SyndicationExtension
[src]
impl PartialEq<SyndicationExtension> for SyndicationExtension
[src]
pub fn eq(&self, other: &SyndicationExtension) -> bool
[src]
pub fn ne(&self, other: &SyndicationExtension) -> bool
[src]
impl StructuralPartialEq for SyndicationExtension
[src]
Auto Trait Implementations
impl RefUnwindSafe for SyndicationExtension
[src]
impl Send for SyndicationExtension
[src]
impl Sync for SyndicationExtension
[src]
impl Unpin for SyndicationExtension
[src]
impl UnwindSafe for SyndicationExtension
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,