Canonical

Trait Canonical 

Source
pub trait Canonical {
    // Required method
    fn canonicalize(&mut self, language_tags: &[MyLanguageTag]);
}
Expand description

Trait implemented by types that can produce a canonical form of their instances.

Needed to comply w/ xAPI requirement when responding to Statement resource GET requests.

Required Methods§

Source

fn canonicalize(&mut self, language_tags: &[MyLanguageTag])

Reduce self to conform to its canonical format as defined in xAPI keeping the most appropriate entry given a list of preferred language tags.

Implementors§