pub struct Hop {
pub status: u16,
pub from: String,
pub to: String,
pub method: String,
pub followed: u32,
}Expand description
A redirect the client is about to follow, as ClientBuilder::on_redirect sees it.
Fields§
§status: u16§from: String§to: String§method: StringThe method the next request uses: a 303 turns anything but HEAD into GET, and a 301 or 302 turns a POST into a GET.
followed: u32Redirects already followed on the way here.
Trait Implementations§
impl Eq for Hop
impl StructuralPartialEq for Hop
Auto Trait Implementations§
impl Forget for Hop
impl Freeze for Hop
impl Move for Hop
impl RefUnwindSafe for Hop
impl Send for Hop
impl Sync for Hop
impl Unpin for Hop
impl UnsafeUnpin for Hop
impl UnwindSafe for Hop
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