#[non_exhaustive]pub struct VulnerableHeaders {
pub headers: Vec<Header>,
pub missing_headers: Vec<Header>,
/* private fields */
}Expand description
Information about vulnerable or missing HTTP Headers.
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.headers: Vec<Header>List of vulnerable headers.
missing_headers: Vec<Header>List of missing headers.
Implementations§
Source§impl VulnerableHeaders
impl VulnerableHeaders
pub fn new() -> Self
Sourcepub fn set_headers<T, V>(self, v: T) -> Self
pub fn set_headers<T, V>(self, v: T) -> Self
Sourcepub fn set_missing_headers<T, V>(self, v: T) -> Self
pub fn set_missing_headers<T, V>(self, v: T) -> Self
Sets the value of missing_headers.
§Example
ⓘ
use google_cloud_websecurityscanner_v1::model::vulnerable_headers::Header;
let x = VulnerableHeaders::new()
.set_missing_headers([
Header::default()/* use setters */,
Header::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for VulnerableHeaders
impl Clone for VulnerableHeaders
Source§fn clone(&self) -> VulnerableHeaders
fn clone(&self) -> VulnerableHeaders
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 VulnerableHeaders
impl Debug for VulnerableHeaders
Source§impl Default for VulnerableHeaders
impl Default for VulnerableHeaders
Source§fn default() -> VulnerableHeaders
fn default() -> VulnerableHeaders
Returns the “default value” for a type. Read more
Source§impl Message for VulnerableHeaders
impl Message for VulnerableHeaders
Source§impl PartialEq for VulnerableHeaders
impl PartialEq for VulnerableHeaders
impl StructuralPartialEq for VulnerableHeaders
Auto Trait Implementations§
impl Freeze for VulnerableHeaders
impl RefUnwindSafe for VulnerableHeaders
impl Send for VulnerableHeaders
impl Sync for VulnerableHeaders
impl Unpin for VulnerableHeaders
impl UnwindSafe for VulnerableHeaders
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