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
sourceimpl 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
sourceimpl Clone for SyndicationExtension
impl Clone for SyndicationExtension
sourcefn clone(&self) -> SyndicationExtension
fn clone(&self) -> SyndicationExtension
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SyndicationExtension
impl Debug for SyndicationExtension
sourceimpl Default for SyndicationExtension
impl Default for SyndicationExtension
sourceimpl PartialEq<SyndicationExtension> for SyndicationExtension
impl PartialEq<SyndicationExtension> for SyndicationExtension
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SyndicationExtension) -> bool
fn ne(&self, other: &SyndicationExtension) -> bool
This method tests for !=
.
impl StructuralPartialEq for SyndicationExtension
Auto Trait Implementations
impl RefUnwindSafe for SyndicationExtension
impl Send for SyndicationExtension
impl Sync for SyndicationExtension
impl Unpin for SyndicationExtension
impl UnwindSafe for SyndicationExtension
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more