Enum spider::configuration::RedirectPolicy
source · pub enum RedirectPolicy {
Loose,
Strict,
}
Expand description
Redirect policy configuration for request
Variants§
Loose
A loose policy that allows all request up to the redirect limit.
Strict
A strict policy only allowing request that match the domain set for crawling.
Trait Implementations§
source§impl Clone for RedirectPolicy
impl Clone for RedirectPolicy
source§fn clone(&self) -> RedirectPolicy
fn clone(&self) -> RedirectPolicy
Returns a copy 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 moresource§impl Debug for RedirectPolicy
impl Debug for RedirectPolicy
source§impl Default for RedirectPolicy
impl Default for RedirectPolicy
source§fn default() -> RedirectPolicy
fn default() -> RedirectPolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RedirectPolicy
impl RefUnwindSafe for RedirectPolicy
impl Send for RedirectPolicy
impl Sync for RedirectPolicy
impl Unpin for RedirectPolicy
impl UnwindSafe for RedirectPolicy
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