pub struct Scraper { /* private fields */ }Implementations§
Source§impl Scraper
impl Scraper
pub fn new() -> Self
pub fn fetch_latest(&self) -> Result<VolcanoReport>
pub fn fetch_date(&self, date: NaiveDate) -> Result<VolcanoReport>
pub fn parse_report(&self, html: &str) -> Result<VolcanoReport>
pub fn parse_spanish_date(text: &str) -> Result<NaiveDate>
pub fn extract_number_before(text: &str, marker: &str) -> Option<u32>
pub fn parse_spanish_month(text: &str) -> Option<u32>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scraper
impl !RefUnwindSafe for Scraper
impl Send for Scraper
impl Sync for Scraper
impl Unpin for Scraper
impl UnsafeUnpin for Scraper
impl !UnwindSafe for Scraper
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