pub struct EventsConfig {
pub webhook: Option<String>,
pub file: Option<String>,
}Expand description
Configuration for event subscribers
Fields§
§webhook: Option<String>HTTP endpoint to POST events to (fire-and-forget)
file: Option<String>File path to append events as JSONL
Trait Implementations§
Source§impl Clone for EventsConfig
impl Clone for EventsConfig
Source§fn clone(&self) -> EventsConfig
fn clone(&self) -> EventsConfig
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 EventsConfig
impl Debug for EventsConfig
Source§impl Default for EventsConfig
impl Default for EventsConfig
Source§fn default() -> EventsConfig
fn default() -> EventsConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventsConfig
impl<'de> Deserialize<'de> for EventsConfig
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 EventsConfig
impl RefUnwindSafe for EventsConfig
impl Send for EventsConfig
impl Sync for EventsConfig
impl Unpin for EventsConfig
impl UnsafeUnpin for EventsConfig
impl UnwindSafe for EventsConfig
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