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 SyncGetLatestCommitParams {
    /// The DID of the repo.
    pub did: String,
}

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

/// SyncGetLatestCommit — Get the current commit CID & revision of the specified repo. Does not require auth.
pub async fn sync_get_latest_commit(
    client: &crate::xrpc::Client,
    params: &SyncGetLatestCommitParams,
) -> Result<SyncGetLatestCommitOutput, crate::xrpc::Error> {
    client
        .query("com.atproto.sync.getLatestCommit", params)
        .await
}