1//! DID subject API.
2use crate::utils::get_did_suffix;
34/// A DID Subject.
5pub trait Subject {
6/// Returns the DID of the subject.
7fn did(&self) -> &str;
8/// Returns the DID suffix of the subject.
9fn did_suffix(&self) -> &str {
10 get_did_suffix(self.did())
11 }
12}