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 SyncGetRepoParams {
    /// The DID of the repo.
    pub did: String,
    /// The revision ('rev') of the repo to create a diff from.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub since: Option<String>,
}

/// SyncGetRepo — Download a repository export as CAR file. Optionally only a 'diff' since a previous revision. Does not require auth; implemented by PDS.
pub async fn sync_get_repo(
    client: &crate::xrpc::Client,
    params: &SyncGetRepoParams,
) -> Result<Vec<u8>, crate::xrpc::Error> {
    client.query_raw("com.atproto.sync.getRepo", params).await
}