#[non_exhaustive]pub struct Compliance {
pub standard: String,
pub version: String,
pub ids: Vec<String>,
/* private fields */
}Expand description
Contains compliance information about a security standard indicating unmet recommendations.
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.standard: StringIndustry-wide compliance standards or benchmarks, such as CIS, PCI, and OWASP.
version: StringVersion of the standard or benchmark, for example, 1.1
ids: Vec<String>Policies within the standard or benchmark, for example, A.12.4.1
Implementations§
Source§impl Compliance
impl Compliance
pub fn new() -> Self
Sourcepub fn set_standard<T: Into<String>>(self, v: T) -> Self
pub fn set_standard<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_version<T: Into<String>>(self, v: T) -> Self
pub fn set_version<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for Compliance
impl Clone for Compliance
Source§fn clone(&self) -> Compliance
fn clone(&self) -> Compliance
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 Compliance
impl Debug for Compliance
Source§impl Default for Compliance
impl Default for Compliance
Source§fn default() -> Compliance
fn default() -> Compliance
Returns the “default value” for a type. Read more
Source§impl PartialEq for Compliance
impl PartialEq for Compliance
impl StructuralPartialEq for Compliance
Auto Trait Implementations§
impl Freeze for Compliance
impl RefUnwindSafe for Compliance
impl Send for Compliance
impl Sync for Compliance
impl Unpin for Compliance
impl UnwindSafe for Compliance
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