#[non_exhaustive]pub enum FeedFormat {
Rss,
RssRdf,
Atom,
Unknown,
}Expand description
Discriminates between supported feed formats.
Returned by detect_feed_format.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rss
RSS 0.9x / 2.0 (<rss> root element).
RssRdf
RSS 1.0 (<rdf:RDF> root element).
Atom
Atom 1.0 (<feed xmlns="http://www.w3.org/2005/Atom"> root).
Unknown
The document could not be classified.
Trait Implementations§
Source§impl Clone for FeedFormat
impl Clone for FeedFormat
Source§fn clone(&self) -> FeedFormat
fn clone(&self) -> FeedFormat
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 moreimpl Copy for FeedFormat
Source§impl Debug for FeedFormat
impl Debug for FeedFormat
impl Eq for FeedFormat
Source§impl Hash for FeedFormat
impl Hash for FeedFormat
Source§impl PartialEq for FeedFormat
impl PartialEq for FeedFormat
Source§fn eq(&self, other: &FeedFormat) -> bool
fn eq(&self, other: &FeedFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FeedFormat
Auto Trait Implementations§
impl Freeze for FeedFormat
impl RefUnwindSafe for FeedFormat
impl Send for FeedFormat
impl Sync for FeedFormat
impl Unpin for FeedFormat
impl UnsafeUnpin for FeedFormat
impl UnwindSafe for FeedFormat
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