pub struct Rss2Channel {Show 16 fields
pub title: String,
pub link: Uri,
pub description: String,
pub language: Option<String>,
pub copyright: Option<String>,
pub managing_editor: Option<String>,
pub web_master: Option<String>,
pub pub_date: Option<Timestamp>,
pub last_build_date: Option<Timestamp>,
pub categories: Vec<Rss2Category>,
pub generator: Option<String>,
pub docs: Option<String>,
pub ttl: Option<u32>,
pub image: Option<Rss2Image>,
pub atom_links: Vec<AtomLink>,
pub extensions: FeedExtensions,
}Available on crate feature
rss only.Expand description
Channel-level metadata of an RSS 2.0 feed — everything an Rss2Feed
carries except its items. Re-combine with item events via
Rss2Channel::into_feed_with_items.
Fields§
§title: String§link: Uri§description: String§language: Option<String>§copyright: Option<String>§managing_editor: Option<String>§web_master: Option<String>§pub_date: Option<Timestamp>§last_build_date: Option<Timestamp>§categories: Vec<Rss2Category>§generator: Option<String>§docs: Option<String>§ttl: Option<u32>§image: Option<Rss2Image>§atom_links: Vec<AtomLink>§extensions: FeedExtensionsImplementations§
Source§impl Rss2Channel
impl Rss2Channel
Sourcepub fn into_feed_with_items<I>(self, items: I) -> Rss2Feedwhere
I: IntoIterator<Item = Rss2Item>,
pub fn into_feed_with_items<I>(self, items: I) -> Rss2Feedwhere
I: IntoIterator<Item = Rss2Item>,
Combine this channel header with an iterator of items into a full feed.
Trait Implementations§
Source§impl Clone for Rss2Channel
impl Clone for Rss2Channel
Source§fn clone(&self) -> Rss2Channel
fn clone(&self) -> Rss2Channel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Rss2Channel
impl Debug for Rss2Channel
Source§impl Default for Rss2Channel
impl Default for Rss2Channel
Source§impl PartialEq for Rss2Channel
impl PartialEq for Rss2Channel
Source§fn eq(&self, other: &Rss2Channel) -> bool
fn eq(&self, other: &Rss2Channel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Rss2Channel
Auto Trait Implementations§
impl Freeze for Rss2Channel
impl RefUnwindSafe for Rss2Channel
impl Send for Rss2Channel
impl Sync for Rss2Channel
impl Unpin for Rss2Channel
impl UnsafeUnpin for Rss2Channel
impl UnwindSafe for Rss2Channel
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more