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<(), Error<Error>>
pub async fn apply_writes(&self, input: Input) -> Result<(), Error<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<Error>>
pub async fn create_record(&self, input: Input) -> Result<Output, Error<Error>>
Create a single new repository record. Requires auth, implemented by PDS.
sourcepub async fn delete_record(&self, input: Input) -> Result<(), Error<Error>>
pub async fn delete_record(&self, input: Input) -> Result<(), Error<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<Error>>
pub async fn describe_repo( &self, params: Parameters ) -> Result<Output, Error<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<Error>>
pub async fn get_record( &self, params: Parameters ) -> Result<Output, Error<Error>>
Get a single record from a repository. Does not require auth.
sourcepub async fn list_records(
&self,
params: Parameters
) -> Result<Output, Error<Error>>
pub async fn list_records( &self, params: Parameters ) -> Result<Output, Error<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<Error>>
pub async fn put_record(&self, input: Input) -> Result<Output, Error<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<Error>>
pub async fn upload_blob(&self, input: Vec<u8>) -> Result<Output, Error<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.