pub fn did_of(did_url: &str) -> Option<&str>
The DID a DID URL is under: did:method:id, without path, query or fragment. None when it is not a DID URL.
did:method:id
None