Struct Backend Config
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
pub struct BackendConfig {
pub kind: String,
pub config: Map<String, Value>,
}
Backend selection mirroring the adaptive crate::config::BackendSpec shape.
Fields
kind: String
Backend kind: "in_memory" or "redis" (needs the redis-backend feature).
config: Map<String, Value>
Backend-specific options (in_memory: max_bytes; redis: url/key_prefix).
Implementations
impl BackendConfig
impl BackendConfig
max_bytes
pub fn max_bytes(&self) -> usize
In-memory total-bytes budget before oldest-first eviction.
Trait Implementations
impl Clone for BackendConfig
impl Clone for BackendConfig
clone
fn clone(&self) -> BackendConfig
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for BackendConfig
impl Debug for BackendConfig
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for BackendConfig
impl Default for BackendConfig
default
fn default() -> Self
impl<'de> Deserialize<'de> for BackendConfigwhere BackendConfig: Default,
impl<'de> Deserialize<'de> for BackendConfigwhere
BackendConfig: Default,
deserialize
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl EditorConfig for BackendConfig
impl EditorConfig for BackendConfig
editor_schema
fn editor_schema() -> &'static EditorSchema
impl Serialize for BackendConfig
impl Serialize for BackendConfig
serialize
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,