shrike 0.1.0

AT Protocol library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by lexgen. DO NOT EDIT.

#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct SyncGetRecordParams {
    pub collection: String,
    pub did: String,
    pub rkey: String,
}

/// SyncGetRecord — Get data blocks needed to prove the existence or non-existence of record in the current version o...
pub async fn sync_get_record(
    client: &crate::xrpc::Client,
    params: &SyncGetRecordParams,
) -> Result<Vec<u8>, crate::xrpc::Error> {
    client.query_raw("com.atproto.sync.getRecord", params).await
}