Skip to main content

ProfileRepository

Trait ProfileRepository 

Source
pub trait ProfileRepository {
    // Required method
    fn profiles_for(
        &self,
        selection: &FlavourSelection,
    ) -> Result<Vec<ValidationProfile>>;
}
Expand description

Repository that resolves validation profiles for a caller selection.

Required Methods§

Source

fn profiles_for( &self, selection: &FlavourSelection, ) -> Result<Vec<ValidationProfile>>

Returns immutable profiles matching a selection.

§Errors

Returns crate::PdfvError when the selection is unsupported or profile data is invalid.

Implementors§