pub struct RegistryConfig {
pub storage: StorageConfig,
pub compatibility: CompatibilityLevel,
pub normalize_schemas: bool,
pub id_generation: IdGeneration,
pub max_cache_size: usize,
}Expand description
Configuration for the Schema Registry
Fields§
§storage: StorageConfigStorage backend configuration
compatibility: CompatibilityLevelDefault compatibility level
normalize_schemas: boolEnable schema normalization before storing
id_generation: IdGenerationSchema ID generation mode
max_cache_size: usizeMaximum number of schemas to cache in memory (0 = unlimited). When the limit is reached, the oldest entries are evicted.
Implementations§
Source§impl RegistryConfig
impl RegistryConfig
Sourcepub fn broker(config: BrokerStorageConfig) -> Self
pub fn broker(config: BrokerStorageConfig) -> Self
Create config with broker-backed storage
Sourcepub fn with_compatibility(self, level: CompatibilityLevel) -> Self
pub fn with_compatibility(self, level: CompatibilityLevel) -> Self
Set compatibility level
Sourcepub fn with_normalize(self, normalize: bool) -> Self
pub fn with_normalize(self, normalize: bool) -> Self
Set schema normalization
Trait Implementations§
Source§impl Clone for RegistryConfig
impl Clone for RegistryConfig
Source§fn clone(&self) -> RegistryConfig
fn clone(&self) -> RegistryConfig
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 RegistryConfig
impl Debug for RegistryConfig
Source§impl Default for RegistryConfig
impl Default for RegistryConfig
Source§impl<'de> Deserialize<'de> for RegistryConfig
impl<'de> Deserialize<'de> for RegistryConfig
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 RegistryConfig
impl RefUnwindSafe for RegistryConfig
impl Send for RegistryConfig
impl Sync for RegistryConfig
impl Unpin for RegistryConfig
impl UnsafeUnpin for RegistryConfig
impl UnwindSafe for RegistryConfig
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