pub trait ToSarif {
    type Sarif;
    type Error;

    // Required method
    fn to_sarif(&self, files: &FileLibrary) -> Result<Self::Sarif, Self::Error>;
}
Expand description

A trait for objects that can be converted into a Sarif artifact.

Required Associated Types§

Required Methods§

Source

fn to_sarif(&self, files: &FileLibrary) -> Result<Self::Sarif, Self::Error>

Converts the object to the corresponding Sarif artifact.

Implementors§