Function ddoresolver_rs::resolve_any[][src]

pub fn resolve_any(did_url: &str) -> Option<Document>

Helper function to try resolve any document based on provided did_url instead of calling DdoResolver::resolve() directly. This function provides convenience but is dependant on resolver features enabled and will have overhead comparing to direct trait call of specific resolver, therefore should be used with consideration. Output is Option: Some(Document) or None. Will never fail with error.