pub struct FailureIndicators {
pub status: Option<u16>,
pub body_preview: String,
pub final_url: Option<String>,
pub response_headers: Vec<(String, String)>,
}Expand description
Input to Site::detect_auth_failure. Not every site uses HTTP status as
the failure signal — some return JSON with error codes, some redirect to a
login page. This struct carries the raw observations.
Fields§
§status: Option<u16>§body_preview: StringFirst ~1KB of the response body, trimmed.
final_url: Option<String>§response_headers: Vec<(String, String)>Trait Implementations§
Source§impl Clone for FailureIndicators
impl Clone for FailureIndicators
Source§fn clone(&self) -> FailureIndicators
fn clone(&self) -> FailureIndicators
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 moreSource§impl Debug for FailureIndicators
impl Debug for FailureIndicators
Source§impl Default for FailureIndicators
impl Default for FailureIndicators
Source§fn default() -> FailureIndicators
fn default() -> FailureIndicators
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FailureIndicators
impl RefUnwindSafe for FailureIndicators
impl Send for FailureIndicators
impl Sync for FailureIndicators
impl Unpin for FailureIndicators
impl UnsafeUnpin for FailureIndicators
impl UnwindSafe for FailureIndicators
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