pub struct Service<T>{ /* private fields */ }
Implementations§
Source§impl<T> Service<T>
impl<T> Service<T>
Sourcepub async fn apply_writes(&self, input: Input) -> Result<Output, Error>
pub async fn apply_writes(&self, input: Input) -> Result<Output, Error>
Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS.
Sourcepub async fn create_record(&self, input: Input) -> Result<Output, Error>
pub async fn create_record(&self, input: Input) -> Result<Output, Error>
Create a single new repository record. Requires auth, implemented by PDS.
Sourcepub async fn delete_record(&self, input: Input) -> Result<Output, Error>
pub async fn delete_record(&self, input: Input) -> Result<Output, Error>
Delete a repository record, or ensure it doesn’t exist. Requires auth, implemented by PDS.
Sourcepub async fn describe_repo(&self, params: Parameters) -> Result<Output, Error>
pub async fn describe_repo(&self, params: Parameters) -> Result<Output, Error>
Get information about an account and repository, including the list of collections. Does not require auth.
Sourcepub async fn get_record(&self, params: Parameters) -> Result<Output, Error>
pub async fn get_record(&self, params: Parameters) -> Result<Output, Error>
Get a single record from a repository. Does not require auth.
Sourcepub async fn import_repo(&self, input: Vec<u8>) -> Result<(), Error>
pub async fn import_repo(&self, input: Vec<u8>) -> Result<(), Error>
Import a repo in the form of a CAR file. Requires Content-Length HTTP header to be set.
Sourcepub async fn list_missing_blobs(
&self,
params: Parameters,
) -> Result<Output, Error>
pub async fn list_missing_blobs( &self, params: Parameters, ) -> Result<Output, Error>
Returns a list of missing blobs for the requesting account. Intended to be used in the account migration flow.
Sourcepub async fn list_records(&self, params: Parameters) -> Result<Output, Error>
pub async fn list_records(&self, params: Parameters) -> Result<Output, Error>
List a range of records in a repository, matching a specific collection. Does not require auth.
Sourcepub async fn put_record(&self, input: Input) -> Result<Output, Error>
pub async fn put_record(&self, input: Input) -> Result<Output, Error>
Write a repository record, creating or updating it as needed. Requires auth, implemented by PDS.
Sourcepub async fn upload_blob(&self, input: Vec<u8>) -> Result<Output, Error>
pub async fn upload_blob(&self, input: Vec<u8>) -> Result<Output, Error>
Upload a new blob, to be referenced from a repository record. The blob will be deleted if it is not referenced within a time window (eg, minutes). Blob restrictions (mimetype, size, etc) are enforced when the reference is created. Requires auth, implemented by PDS.