pub struct ReportGenerator;Expand description
Stateless renderer for supported encodings.
Implementations§
Source§impl ReportGenerator
impl ReportGenerator
Sourcepub fn generate(
report: &RunReport,
format: ReportFormat,
) -> Result<String, ReportError>
pub fn generate( report: &RunReport, format: ReportFormat, ) -> Result<String, ReportError>
Renders one report, returning no partial document on failure.
Sourcepub fn compose_assessment(
report: WebAssessmentRunReport,
profile: ScanProfileV1,
) -> Result<AssessmentRunReport, AssessmentRunReportError>
pub fn compose_assessment( report: WebAssessmentRunReport, profile: ScanProfileV1, ) -> Result<AssessmentRunReport, AssessmentRunReportError>
Consumes one completed runtime-owned web assessment into its typed product envelope. The generic run envelope is minted internally from the runtime’s clock and metered accounting; callers cannot supply or replace it.
Sourcepub fn compose_assessment_with_jwt_policy_review(
report: WebAssessmentRunReport,
profile: ScanProfileV1,
audit: Option<JwtPolicyReviewAudit>,
) -> Result<AssessmentRunReport, AssessmentRunReportError>
pub fn compose_assessment_with_jwt_policy_review( report: WebAssessmentRunReport, profile: ScanProfileV1, audit: Option<JwtPolicyReviewAudit>, ) -> Result<AssessmentRunReport, AssessmentRunReportError>
Composes the ordinary completed assessment and then attaches one independently evaluated transport-free local JWT audit. No runtime or network authority is created by this reporting bridge.
Sourcepub fn attach_control_reference_mapping(
report: AssessmentRunReport,
) -> Result<AssessmentRunReport, AssessmentRunReportError>
pub fn attach_control_reference_mapping( report: AssessmentRunReport, ) -> Result<AssessmentRunReport, AssessmentRunReportError>
Attaches the explicitly selected, transport-free control-reference projection after the ordinary assessment has completed. The mapper can neither create assessment items nor change their claim authority.
Sourcepub fn attach_recon_snapshot(
report: AssessmentRunReport,
audit: ReconSnapshot,
) -> Result<AssessmentRunReport, AssessmentRunReportError>
pub fn attach_recon_snapshot( report: AssessmentRunReport, audit: ReconSnapshot, ) -> Result<AssessmentRunReport, AssessmentRunReportError>
Attaches one explicitly supplied, already validated local reconnaissance snapshot after the ordinary assessment has completed. Imported hypotheses do not become subjects, assessment items, or transport authority.
Sourcepub fn generate_assessment(
report: &AssessmentRunReport,
format: ReportFormat,
) -> Result<String, ReportError>
pub fn generate_assessment( report: &AssessmentRunReport, format: ReportFormat, ) -> Result<String, ReportError>
Renders one completed typed assessment through the existing bounded,
context-safe report encoders. This is an additive document surface and
never changes the REPORT_DOCUMENT_SCHEMA compatibility contract.
Sourcepub const fn available_formats() -> &'static [ReportFormat]
pub const fn available_formats() -> &'static [ReportFormat]
Returns all formats in stable negotiation order.
Trait Implementations§
Source§impl Clone for ReportGenerator
impl Clone for ReportGenerator
Source§fn clone(&self) -> ReportGenerator
fn clone(&self) -> ReportGenerator
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more