Expand description
The ccsr
crate provides an ergonomic API client for Confluent-compatible
schema registries (CCSRs).
The only known CCSR implementation is the Confluent Schema Registry, but this crate is compatible with any implementation that adheres to the CCSR API specification.
§Example usage
use mz_ccsr::ClientConfig;
let url = "http://localhost:8080".parse()?;
let client = ClientConfig::new(url).build()?;
let subjects = client.list_subjects().await?;
for subject in subjects {
let schema = client.get_schema_by_subject(&subject).await?;
// Do something with `schema`.
}
Modules§
Structs§
- Client
- An API client for a Confluent-compatible schema registry.
- Client
Config - Configuration for a
Client
. - Proxy
- Configuration of a proxy that a
Client
should pass requests to. - Schema
- A schema stored by a schema registry.
- Schema
Reference - A reference from one schema in a schema registry to another.
- Subject
- A subject stored by a schema registry.
- Subject
Config
Enums§
- Compatibility
Level - Delete
Error - Errors for delete operations.
- GetBy
IdError - Errors for schema lookups by ID.
- GetBy
Subject Error - Errors for schema lookups by subject.
- GetSubject
Config Error - Errors for schema lookups by subject.
- List
Error - Errors for list operations.
- Publish
Error - Errors for publish operations.
- Schema
Type - The type of a schema stored by a schema registry.
- SetCompatibility
Level Error - Errors for setting compatibility level operations.