Trait ReportType

Source
pub trait ReportType {
    // Required method
    fn report_type() -> &'static str;
}
Expand description

A trait that maps each Rust report type to the corresponding type value that appears in a JSON report payload.

Required Methods§

Source

fn report_type() -> &'static str

The value of the report’s type field for reports of this type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§