pub struct ObserversConfig {
pub enabled: bool,
pub backend: String,
pub redis_url: Option<String>,
pub nats_url: Option<String>,
}Expand description
Observers/event system configuration.
Deliberately carries no handler definitions (#631): runtime observers
have exactly one source of truth — the tb_observer table and the admin
observer API. Compiled handler declarations (TOML [[observers.handlers]],
SDK-authored observers_config.handlers) are rejected at compile time
rather than carried as decoration the runtime never reads.
deny_unknown_fields makes a hand-edited compiled schema that smuggles a
handlers array fail loudly at load instead of deserializing minus the key.
Fields§
§enabled: boolEnable observers system.
backend: StringBackend service: redis, nats, postgresql, mysql, in-memory.
redis_url: Option<String>Redis connection URL.
nats_url: Option<String>NATS connection URL.
Trait Implementations§
Source§impl Clone for ObserversConfig
impl Clone for ObserversConfig
Source§impl Debug for ObserversConfig
impl Debug for ObserversConfig
Source§impl Default for ObserversConfig
impl Default for ObserversConfig
Source§impl<'de> Deserialize<'de> for ObserversConfig
impl<'de> Deserialize<'de> for ObserversConfig
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
impl Eq for ObserversConfig
Source§impl PartialEq for ObserversConfig
impl PartialEq for ObserversConfig
Source§impl Serialize for ObserversConfig
impl Serialize for ObserversConfig
impl StructuralPartialEq for ObserversConfig
Auto Trait Implementations§
impl Freeze for ObserversConfig
impl RefUnwindSafe for ObserversConfig
impl Send for ObserversConfig
impl Sync for ObserversConfig
impl Unpin for ObserversConfig
impl UnsafeUnpin for ObserversConfig
impl UnwindSafe for ObserversConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.