pub struct RssFeedValidator<'a> { /* private fields */ }
Expand description
RSS feed validator for validating the structure and content of an RSS feed.
Implementations§
Source§impl<'a> RssFeedValidator<'a>
impl<'a> RssFeedValidator<'a>
Sourcepub fn validate(&self) -> Result<()>
pub fn validate(&self) -> Result<()>
Validates the RSS feed structure and content.
This method performs a comprehensive validation of the RSS feed, including structure, items, dates, and version-specific requirements.
§Returns
Ok(())
if the validation passes.Err(RssError::ValidationErrors)
containing a list of validation errors if any are found.
§Errors
This function returns an Err(RssError::ValidationErrors)
if any validation checks fail.
Sourcepub fn parse_date(date_str: &str) -> Result<DateTime>
pub fn parse_date(date_str: &str) -> Result<DateTime>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RssFeedValidator<'a>
impl<'a> RefUnwindSafe for RssFeedValidator<'a>
impl<'a> Send for RssFeedValidator<'a>
impl<'a> Sync for RssFeedValidator<'a>
impl<'a> Unpin for RssFeedValidator<'a>
impl<'a> UnwindSafe for RssFeedValidator<'a>
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