shrike 0.1.0

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 SyncGetHeadParams {
    pub did: String,
}

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

/// SyncGetHead — DEPRECATED - please use com.atproto.sync.getLatestCommit instead
pub async fn sync_get_head(
    client: &crate::xrpc::Client,
    params: &SyncGetHeadParams,
) -> Result<SyncGetHeadOutput, crate::xrpc::Error> {
    client.query("com.atproto.sync.getHead", params).await
}