#[non_exhaustive]pub struct Xss {
pub stack_traces: Vec<String>,
pub error_message: String,
pub attack_vector: AttackVector,
pub stored_xss_seeding_url: String,
/* private fields */
}Expand description
Information reported for an XSS.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.stack_traces: Vec<String>Stack traces leading to the point where the XSS occurred.
error_message: StringAn error message generated by a javascript breakage.
attack_vector: AttackVectorThe attack vector of the payload triggering this XSS.
stored_xss_seeding_url: StringThe reproduction url for the seeding POST request of a Stored XSS.
Implementations§
Source§impl Xss
impl Xss
pub fn new() -> Self
Sourcepub fn set_stack_traces<T, V>(self, v: T) -> Self
pub fn set_stack_traces<T, V>(self, v: T) -> Self
Sourcepub fn set_error_message<T: Into<String>>(self, v: T) -> Self
pub fn set_error_message<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_attack_vector<T: Into<AttackVector>>(self, v: T) -> Self
pub fn set_attack_vector<T: Into<AttackVector>>(self, v: T) -> Self
Sets the value of attack_vector.
§Example
ⓘ
use google_cloud_websecurityscanner_v1::model::xss::AttackVector;
let x0 = Xss::new().set_attack_vector(AttackVector::LocalStorage);
let x1 = Xss::new().set_attack_vector(AttackVector::SessionStorage);
let x2 = Xss::new().set_attack_vector(AttackVector::WindowName);Sourcepub fn set_stored_xss_seeding_url<T: Into<String>>(self, v: T) -> Self
pub fn set_stored_xss_seeding_url<T: Into<String>>(self, v: T) -> Self
Sets the value of stored_xss_seeding_url.
§Example
ⓘ
let x = Xss::new().set_stored_xss_seeding_url("example");Trait Implementations§
impl StructuralPartialEq for Xss
Auto Trait Implementations§
impl Freeze for Xss
impl RefUnwindSafe for Xss
impl Send for Xss
impl Sync for Xss
impl Unpin for Xss
impl UnwindSafe for Xss
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