pub struct Feed { /* private fields */ }Implementations§
Source§impl Feed
impl Feed
Sourcepub fn new() -> Self
pub fn new() -> Self
Build a client against the default feed, or whatever POPO_FEED_BASE
points at.
Sourcepub fn with_base(base: impl Into<String>) -> Self
pub fn with_base(base: impl Into<String>) -> Self
Build a client against a specific feed. The base may be an HTTP(S) URL or a filesystem path holding the same layout.
pub fn base(&self) -> &str
Sourcepub fn latest(&self) -> Result<VolcanoReport>
pub fn latest(&self) -> Result<VolcanoReport>
The most recently published report.
Sourcepub fn get(&self, date: NaiveDate) -> Result<VolcanoReport>
pub fn get(&self, date: NaiveDate) -> Result<VolcanoReport>
The report for a specific day.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Feed
impl !UnwindSafe for Feed
impl Freeze for Feed
impl Send for Feed
impl Sync for Feed
impl Unpin for Feed
impl UnsafeUnpin for Feed
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