pub trait PersistentIdentifier: Display {
    // Required methods
    fn new() -> Self;
    fn schema_uri(&self) -> String;
    fn identifier(&self) -> String;
    // Provided methods
    fn prefix(&self) -> Option<String> { ... }
    fn suffix(&self) -> Option<String> { ... }
    fn check_digit(&self) -> Option<char> { ... }
    fn format(&self) -> String { ... }
    fn is_valid(&self) -> bool { ... }
}Expand description
Provides common functions for working with persistent identifiers (PID)
Required Methods§
Sourcefn schema_uri(&self) -> String
 
fn schema_uri(&self) -> String
Provided Methods§
Sourcefn prefix(&self) -> Option<String>
 
fn prefix(&self) -> Option<String>
Get PID prefix (different interpretation depending on PID type)
Not every PID type has a prefix, but generally every PID has a “first” part that can losely be considered a “prefix”
Sourcefn suffix(&self) -> Option<String>
 
fn suffix(&self) -> Option<String>
Get PID suffix (different interpretation depending on PID type)
Not every PID type has a suffix, but generally every PID has a “second” part that can losely be considered a “suffix”
Sourcefn check_digit(&self) -> Option<char>
 
fn check_digit(&self) -> Option<char>
Get PID check digit (when applicable)
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.