pub struct AnalysisContext {
pub url: String,
pub html: String,
pub status_code: Option<u16>,
pub headers: Vec<(String, String)>,
pub response_time_ms: Option<u64>,
}Expand description
Context passed to analyzers.
Fields§
§url: StringThe page URL.
html: StringThe HTML content.
status_code: Option<u16>HTTP status code.
headers: Vec<(String, String)>Response headers.
response_time_ms: Option<u64>Response time in milliseconds.
Trait Implementations§
Source§impl Clone for AnalysisContext
impl Clone for AnalysisContext
Source§impl Debug for AnalysisContext
impl Debug for AnalysisContext
Source§impl<'de> Deserialize<'de> for AnalysisContext
impl<'de> Deserialize<'de> for AnalysisContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AnalysisContext
impl RefUnwindSafe for AnalysisContext
impl Send for AnalysisContext
impl Sync for AnalysisContext
impl Unpin for AnalysisContext
impl UnsafeUnpin for AnalysisContext
impl UnwindSafe for AnalysisContext
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