pub struct Request<'a> { /* private fields */ }
Expand description
A configured URL for a request to the wayback machines’ timemap
use wayback_urls::timemap::{Request, Field::{Timestamp, StatusCode, UrlKey}};
let r = Request::builder("nexushq.universe.lego.com/en-us/character/details")
.match_prefix()
.with_field(Timestamp)
.with_field(UrlKey)
.filter_inverted(StatusCode, "[45]..")
.collapse(UrlKey)
.done().to_url();
assert_eq!(&r, "https://web.archive.org/web/timemap/\
?url=nexushq.universe.lego.com%2Fen-us%2Fcharacter%2Fdetails\
&fl=timestamp,urlkey\
&matchType=prefix\
&collapse=urlkey\
&filter=!statuscode:[45]..");
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Request<'a>
impl<'a> RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> UnwindSafe for Request<'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