shrike 0.1.1

AT Protocol library for Rust
Documentation
// Code generated by lexgen. DO NOT EDIT.

#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct IdentityResolveDidParams {
    /// DID to resolve.
    pub did: String,
}

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct IdentityResolveDidOutput {
    /// The complete DID document for the identity.
    pub did_doc: serde_json::Value,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// IdentityResolveDid — Resolves DID to DID document. Does not bi-directionally verify handle.
pub async fn identity_resolve_did(
    client: &crate::xrpc::Client,
    params: &IdentityResolveDidParams,
) -> Result<IdentityResolveDidOutput, crate::xrpc::Error> {
    client
        .query("com.atproto.identity.resolveDid", params)
        .await
}