Trait mentat::vocabulary::VocabularyStatus [] [src]

pub trait VocabularyStatus {
    fn get(&self, name: &Keyword) -> Option<(&Definition, &VocabularyCheck)>;
fn version(&self, name: &Keyword) -> Option<Version>; }

VocabularyStatus is passed to pre function when attempting to add or upgrade vocabularies via ensure_vocabularies. This is how you can find the status and versions of existing vocabularies — you can retrieve the requested definition and the resulting VocabularyCheck by name.

Required Methods

Implementors