Skip to main content

Module db

Module db 

Source

Modules§

billing_config
config
fleet_secrets
Fleet-wide, tenant-agnostic provider API key & config storage.
vectorstore
Vector Store Abstraction Layer

Structs§

BillingConfig
Billing and estimated-cost configuration.
CollectionInfo
Information about a collection.
CollectionStats
Statistics about a vector collection.
DatabaseConfig
Database configuration settings.
EncryptedPayload
AES-256-GCM ciphertext with its 96-bit nonce. Stored side-by-side so the loader does not have to track nonces separately.
FleetSecrets
Decrypted, in-memory fleet secrets state. Cheap to clone (it’s an Arc<ArcSwap<...>> under the hood), so callers can hand the wrapper directly to handlers.
MasterKey
Master-key wrapper that zeroes itself on drop. Cheap to clone via Arc.
ModelPricingConfig
Pricing for a single runtime provider/model pair.
PostgresService
Cordis Service for postgres availability — runtime check replaces #[cfg(feature = "postgres")] in handlers.
ProviderOverride
In-memory decrypted view of a single provider override row.
QdrantConfig
Qdrant vector database configuration.

Enums§

FleetSecretsError
Fixed-length error type for the fleet-secrets module.
VectorStoreProvider
Configuration for vector store providers.

Traits§

VectorStore
Abstract trait for vector database operations.

Functions§

decrypt_api_key
Decrypt a previously-encrypted payload back to the plaintext API key.
default_qdrant_url
encrypt_api_key
Encrypt a UTF-8 plaintext API key. Returns the ciphertext + nonce.
last_n_visible
Return the last n chars of a key, prefixed with , for safe display. Returns None for empty input.
register_plugins
Register this crate’s loader factories on reg (manual fallback path).