pub struct DefinedRequirement {
pub bom_ref: Option<String>,
pub identifier: Option<String>,
pub title: Option<String>,
pub text: Option<String>,
pub descriptions: Vec<String>,
pub open_cre: Vec<String>,
pub parent: Option<String>,
pub external_refs: Vec<ExternalReference>,
}Expand description
One definitions.standards[].requirements[] entry.
Field set follows the frozen 1.6 schema: text is a plain string,
descriptions is a PLURAL array of supplemental strings, openCre is an
array of CRE:x-y identifiers, parent is a refLink to a parent
requirement. (properties are not normalized in phase 1.)
Fields§
§bom_ref: Option<String>§identifier: Option<String>The identifier used IN THE STANDARD (e.g. SSDF practice “PS.1”) — not the bom-ref. This is what maps to engine rule families.
title: Option<String>§text: Option<String>§descriptions: Vec<String>§open_cre: Vec<String>§parent: Option<String>refLink to the parent requirement (hierarchy), kept raw.
external_refs: Vec<ExternalReference>Trait Implementations§
Source§impl Clone for DefinedRequirement
impl Clone for DefinedRequirement
Source§fn clone(&self) -> DefinedRequirement
fn clone(&self) -> DefinedRequirement
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 DefinedRequirement
impl Debug for DefinedRequirement
Source§impl Default for DefinedRequirement
impl Default for DefinedRequirement
Source§fn default() -> DefinedRequirement
fn default() -> DefinedRequirement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DefinedRequirement
impl<'de> Deserialize<'de> for DefinedRequirement
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
Source§impl PartialEq for DefinedRequirement
impl PartialEq for DefinedRequirement
Source§impl Serialize for DefinedRequirement
impl Serialize for DefinedRequirement
impl StructuralPartialEq for DefinedRequirement
Auto Trait Implementations§
impl Freeze for DefinedRequirement
impl RefUnwindSafe for DefinedRequirement
impl Send for DefinedRequirement
impl Sync for DefinedRequirement
impl Unpin for DefinedRequirement
impl UnsafeUnpin for DefinedRequirement
impl UnwindSafe for DefinedRequirement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more