#[non_exhaustive]pub struct Xxe {
pub payload_value: String,
pub payload_location: Location,
/* private fields */
}Expand description
Information reported for an XXE.
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.payload_value: StringThe XML string that triggered the XXE vulnerability. Non-payload values might be redacted.
payload_location: LocationLocation within the request where the payload was placed.
Implementations§
Source§impl Xxe
impl Xxe
pub fn new() -> Self
Sourcepub fn set_payload_value<T: Into<String>>(self, v: T) -> Self
pub fn set_payload_value<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_payload_location<T: Into<Location>>(self, v: T) -> Self
pub fn set_payload_location<T: Into<Location>>(self, v: T) -> Self
Sets the value of payload_location.
§Example
ⓘ
use google_cloud_websecurityscanner_v1::model::xxe::Location;
let x0 = Xxe::new().set_payload_location(Location::CompleteRequestBody);Trait Implementations§
impl StructuralPartialEq for Xxe
Auto Trait Implementations§
impl Freeze for Xxe
impl RefUnwindSafe for Xxe
impl Send for Xxe
impl Sync for Xxe
impl Unpin for Xxe
impl UnwindSafe for Xxe
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