pub struct SecurityAssessment {
pub url: String,
pub threat_level: String,
pub threat_score: f64,
pub findings: Vec<SecurityFinding>,
pub hidden_text_length: i32,
pub visible_text_length: i32,
pub hidden_ratio: f64,
pub summary: String,
}Expand description
Threat assessment for a scanned page.
Fields§
§url: StringSource URL.
threat_level: StringOverall threat level: “none”, “low”, “medium”, “high”, “critical”.
threat_score: f64Numeric threat score (0.0 - 100.0).
findings: Vec<SecurityFinding>Individual findings.
Length of hidden text content detected.
visible_text_length: i32Length of visible text content.
Ratio of hidden to total content.
summary: StringHuman-readable summary.
Trait Implementations§
Source§impl Clone for SecurityAssessment
impl Clone for SecurityAssessment
Source§fn clone(&self) -> SecurityAssessment
fn clone(&self) -> SecurityAssessment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SecurityAssessment
impl Debug for SecurityAssessment
Source§impl Default for SecurityAssessment
impl Default for SecurityAssessment
Source§fn default() -> SecurityAssessment
fn default() -> SecurityAssessment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SecurityAssessment
impl<'de> Deserialize<'de> for SecurityAssessment
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 SecurityAssessment
impl RefUnwindSafe for SecurityAssessment
impl Send for SecurityAssessment
impl Sync for SecurityAssessment
impl Unpin for SecurityAssessment
impl UnsafeUnpin for SecurityAssessment
impl UnwindSafe for SecurityAssessment
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