pub async fn webfinger_resolve_actor<T: Clone, Kind>(
    identifier: &str,
    data: &Data<T>
) -> Result<Kind, <Kind as Object>::Error>
where Kind: Object + Actor + Send + 'static + Object<DataType = T>, for<'de2> <Kind as Object>::Kind: Deserialize<'de2>, <Kind as Object>::Error: From<Error> + Send + Sync + Display,
Expand description

Takes an identifier of the form name@example.com, and returns an object of Kind.

For this the identifier is first resolved via webfinger protocol to an Activitypub ID. This ID is then fetched using ObjectId::dereference, and the result returned.