/// Describes a policy for handling server redirects.
////// The default is to not follow redirects.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]pubenumRedirectPolicy{/// Do not apply any special treatment to redirect responses. The response
/// will be returned as-is and redirects will not be followed.
////// This is the default policy.
None,/// Follow all redirects automatically.
Follow,/// Follow redirects automatically up to a maximum number of redirects.
Limit(u32),}implDefault forRedirectPolicy{fndefault()->Self{RedirectPolicy::None
}}