Skip to main content

Frontmatter

Struct Frontmatter 

Source
pub struct Frontmatter {
Show 61 fields pub id: Option<String>, pub title: Option<String>, pub status: Option<String>, pub created: Option<String>, pub agent: Option<String>, pub confidence: Option<String>, pub review_required: Option<bool>, pub reviewed_by: Option<String>, pub reviewed_at: Option<String>, pub review_outcome: Option<String>, pub risk_level: Option<String>, pub eu_ai_act_risk: Option<String>, pub nist_genai_risks: Option<Vec<String>>, pub iso_42001_clause: Option<Vec<u8>>, pub tags: Option<Vec<String>>, pub related: Option<Vec<String>>, pub supersedes: Option<Vec<String>>, pub alternatives_documented: Option<Vec<String>>, pub originating_ailogs: Option<Vec<String>>, pub severity: Option<String>, pub gdpr_legal_basis: Option<String>, pub threat_model_methodology: Option<String>, pub owasp_asvs_level: Option<Value>, pub model_name: Option<String>, pub model_type: Option<String>, pub model_version: Option<String>, pub provider: Option<String>, pub license: Option<String>, pub sbom_format_reference: Option<String>, pub system_name: Option<String>, pub gdpr_article_35: Option<bool>, pub dpo_consulted: Option<bool>, pub supervisory_authority_consulted: Option<bool>, pub api_changes: Option<Vec<String>>, pub api_spec_path: Option<String>, pub tc260_risk_level: Option<String>, pub tc260_application_scenario: Option<String>, pub tc260_intelligence_level: Option<String>, pub tc260_application_scale: Option<String>, pub tc260_endogenous_risks: Option<Vec<String>>, pub tc260_application_risks: Option<Vec<String>>, pub tc260_derivative_risks: Option<Vec<String>>, pub pipl_applicable: Option<bool>, pub pipl_article_55_trigger: Option<String>, pub pipl_sensitive_data: Option<bool>, pub pipl_cross_border_transfer: Option<bool>, pub pipl_retention_until: Option<String>, pub gb45438_applicable: Option<bool>, pub gb45438_content_types: Option<Vec<String>>, pub gb45438_explicit_label_strategy: Option<String>, pub gb45438_implicit_metadata_format: Option<String>, pub gb45438_distributor_obligations_documented: Option<bool>, pub cac_filing_required: Option<bool>, pub cac_filing_number: Option<String>, pub cac_filing_status: Option<String>, pub cac_filing_type: Option<String>, pub cac_provincial_authority: Option<String>, pub cac_national_decision_date: Option<String>, pub gb45652_training_data_compliance: Option<bool>, pub csl_severity_level: Option<String>, pub csl_report_deadline_hours: Option<u32>,
}
Expand description

Frontmatter fields extracted from a StrayMark document. All fields are optional so the validator can report which are missing.

Fields§

§id: Option<String>§title: Option<String>§status: Option<String>§created: Option<String>§agent: Option<String>§confidence: Option<String>§review_required: Option<bool>§reviewed_by: Option<String>

Reviewer identity (email | github-handle | DID). Set by straymark approve and by ## 3.5 Recording Approval of the framework’s documentation policy.

§reviewed_at: Option<String>

Date of formal approval (must be >= created).

§review_outcome: Option<String>

Closure signal — one of: approved | revisions_requested | rejected. Presence of this field is the canonical “human has reviewed” signal.

§risk_level: Option<String>§eu_ai_act_risk: Option<String>§nist_genai_risks: Option<Vec<String>>§iso_42001_clause: Option<Vec<u8>>§tags: Option<Vec<String>>§related: Option<Vec<String>>§supersedes: Option<Vec<String>>

Documents this one supersedes (graph edge SUPERSEDES).

§alternatives_documented: Option<Vec<String>>

Alternatives documented elsewhere (graph edge DOCUMENTS_ALTERNATIVE).

§originating_ailogs: Option<Vec<String>>

AILOGs a document originates from (graph edge ORIGINATES_FROM).

§severity: Option<String>§gdpr_legal_basis: Option<String>§threat_model_methodology: Option<String>§owasp_asvs_level: Option<Value>§model_name: Option<String>§model_type: Option<String>§model_version: Option<String>§provider: Option<String>§license: Option<String>§sbom_format_reference: Option<String>§system_name: Option<String>§gdpr_article_35: Option<bool>§dpo_consulted: Option<bool>§supervisory_authority_consulted: Option<bool>§api_changes: Option<Vec<String>>§api_spec_path: Option<String>§tc260_risk_level: Option<String>

One of: “low” | “medium” | “high” | “very_high” | “extremely_severe” | “not_applicable”

§tc260_application_scenario: Option<String>§tc260_intelligence_level: Option<String>

One of: “narrow” | “foundation” | “agentic” | “general”

§tc260_application_scale: Option<String>

One of: “individual” | “organization” | “societal” | “cross_border”

§tc260_endogenous_risks: Option<Vec<String>>§tc260_application_risks: Option<Vec<String>>§tc260_derivative_risks: Option<Vec<String>>§pipl_applicable: Option<bool>§pipl_article_55_trigger: Option<String>

One of: “sensitive_data” | “automated_decision” | “third_party_disclosure” | “cross_border” | “public_disclosure” | “other”

§pipl_sensitive_data: Option<bool>§pipl_cross_border_transfer: Option<bool>§pipl_retention_until: Option<String>

YYYY-MM-DD — minimum 3 years from created per PIPL.

§gb45438_applicable: Option<bool>§gb45438_content_types: Option<Vec<String>>

Subset of: “text” | “image” | “audio” | “video” | “virtual_scene”

§gb45438_explicit_label_strategy: Option<String>

One of: “disclaimer” | “watermark” | “caption” | “audio_cue” | “banner”

§gb45438_implicit_metadata_format: Option<String>

One of: “C2PA” | “XMP” | “EXIF” | “custom” | “none”

§gb45438_distributor_obligations_documented: Option<bool>§cac_filing_required: Option<bool>§cac_filing_number: Option<String>§cac_filing_status: Option<String>

One of: “pending” | “provincial_submitted” | “provincial_approved” | “national_submitted” | “national_approved” | “rejected” | “not_required”

§cac_filing_type: Option<String>

One of: “algorithm” | “generative_ai” | “dual”

§cac_provincial_authority: Option<String>§cac_national_decision_date: Option<String>§gb45652_training_data_compliance: Option<bool>§csl_severity_level: Option<String>

One of: “particularly_serious” | “relatively_major” | “major” | “general” | “not_applicable”

§csl_report_deadline_hours: Option<u32>

1 (particularly serious) | 4 (relatively major) | 24 (general)

Trait Implementations§

Source§

impl Clone for Frontmatter

Source§

fn clone(&self) -> Frontmatter

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Frontmatter

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Frontmatter

Source§

fn default() -> Frontmatter

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Frontmatter

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.