[][src]Struct rss::extension::syndication::SyndicationExtension

pub struct SyndicationExtension { /* fields omitted */ }

An RSS syndication element extension.

Methods

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]

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 PartialEq<SyndicationExtension> for SyndicationExtension[src]

impl Clone for SyndicationExtension[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for SyndicationExtension[src]

impl Debug for SyndicationExtension[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]