pub enum StorageConfig {
Memory,
Broker(BrokerStorageConfig),
Glue {
region: String,
registry_name: Option<String>,
},
}Expand description
Storage backend configuration
The schema registry supports multiple storage backends:
- Memory: In-memory storage for development and testing
- Broker: Durable storage in rivven broker topics (recommended for production)
- Glue: AWS Glue Schema Registry for AWS-native deployments
Variants§
Memory
In-memory storage (default for development)
Broker(BrokerStorageConfig)
Broker-backed storage (durable, replicated)
Stores schemas in a compacted rivven topic (similar to Kafka’s _schemas topic).
Provides durability and automatic replication across cluster nodes.
Glue
AWS Glue Schema Registry (external)
Trait Implementations§
Source§impl Clone for StorageConfig
impl Clone for StorageConfig
Source§fn clone(&self) -> StorageConfig
fn clone(&self) -> StorageConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StorageConfig
impl Debug for StorageConfig
Source§impl Default for StorageConfig
impl Default for StorageConfig
Source§fn default() -> StorageConfig
fn default() -> StorageConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StorageConfig
impl<'de> Deserialize<'de> for StorageConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StorageConfig
impl RefUnwindSafe for StorageConfig
impl Send for StorageConfig
impl Sync for StorageConfig
impl Unpin for StorageConfig
impl UnsafeUnpin for StorageConfig
impl UnwindSafe for StorageConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more