Struct rss::extension::syndication::SyndicationExtension
source · pub struct SyndicationExtension {
pub period: UpdatePeriod,
pub frequency: u32,
pub base: String,
}
Expand description
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§
source§impl SyndicationExtension
impl SyndicationExtension
sourcepub fn base(&self) -> &str
pub fn base(&self) -> &str
Retrieve the base timestamp from which the refresh periods are calculated
sourcepub fn set_base(&mut self, base: &str)
pub fn set_base(&mut self, base: &str)
Set the base from which the refresh periods are calculated
sourcepub fn set_frequency(&mut self, frequency: u32)
pub fn set_frequency(&mut self, frequency: u32)
Set the number of periods between refreshes
sourcepub fn period(&self) -> &UpdatePeriod
pub fn period(&self) -> &UpdatePeriod
Retrieve the refresh period for this channel
sourcepub fn set_period(&mut self, period: UpdatePeriod)
pub fn set_period(&mut self, period: UpdatePeriod)
Set the refresh period for this channel
Trait Implementations§
source§impl Clone for SyndicationExtension
impl Clone for SyndicationExtension
source§fn clone(&self) -> SyndicationExtension
fn clone(&self) -> SyndicationExtension
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SyndicationExtension
impl Debug for SyndicationExtension
source§impl Default for SyndicationExtension
impl Default for SyndicationExtension
source§impl PartialEq for SyndicationExtension
impl PartialEq for SyndicationExtension
source§fn eq(&self, other: &SyndicationExtension) -> bool
fn eq(&self, other: &SyndicationExtension) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SyndicationExtension
Auto Trait Implementations§
impl Freeze for SyndicationExtension
impl RefUnwindSafe for SyndicationExtension
impl Send for SyndicationExtension
impl Sync for SyndicationExtension
impl Unpin for SyndicationExtension
impl UnwindSafe for SyndicationExtension
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more