# Configuration

- Use `ProducerConfig` for producer-only setup.
- Use `ConsumerConfig` for consumer-only setup.
- Use `AdminConfig` for admin-only setup.
- Use `KafkaClient` for shared bootstrap/topic defaults.
- Use `TlsConfig` for TLS.
- Use `SaslConfig` for SASL.

## TLS

- Custom CA: `TlsConfig::new().with_ca_cert_path(...)`.
- Server name override: `with_server_name(...)`.
- Client certificate: `with_client_cert(...)`.

## SASL

- PLAIN: `with_sasl_plain(username, password)`.
- SCRAM-SHA-256: `with_sasl_scram_sha_256(username, password)`.
- SCRAM-SHA-512: `with_sasl_scram_sha_512(username, password)`.

