pub struct WaybackClient { /* private fields */ }Expand description
Client for the Wayback Machine CDX + snapshot APIs.
Implementations§
Source§impl WaybackClient
impl WaybackClient
pub fn new() -> Result<Self>
Sourcepub async fn list(
&self,
url: &str,
from: &str,
to: &str,
) -> Result<Vec<WaybackMatch>>
pub async fn list( &self, url: &str, from: &str, to: &str, ) -> Result<Vec<WaybackMatch>>
Query the CDX index for snapshots of url between from and to
(inclusive), both YYYYMMDD.
Only statuscode == "200" matches are returned.
Sourcepub async fn fetch(&self, m: &WaybackMatch) -> Result<Bytes>
pub async fn fetch(&self, m: &WaybackMatch) -> Result<Bytes>
Fetch the identity-copy body of a single CDX match.
Trait Implementations§
Source§impl Clone for WaybackClient
impl Clone for WaybackClient
Source§fn clone(&self) -> WaybackClient
fn clone(&self) -> WaybackClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WaybackClient
impl !RefUnwindSafe for WaybackClient
impl Send for WaybackClient
impl Sync for WaybackClient
impl Unpin for WaybackClient
impl UnsafeUnpin for WaybackClient
impl !UnwindSafe for WaybackClient
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