pub struct ClientOptions {
pub api_key: Option<ApiKey>,
pub host: Host,
pub shutdown_timeout: Duration,
pub before_send: Vec<BeforeSendFn>,
}Expand description
Configuration for the PostHog client.
Fields§
§api_key: Option<ApiKey>The PostHog API key. If None, the client will not be initialized.
host: HostThe target PostHog host.
shutdown_timeout: DurationTimeout for graceful shutdown (default: 2 seconds).
before_send: Vec<BeforeSendFn>Hooks to modify or filter events before sending.
Implementations§
Trait Implementations§
Source§impl Debug for ClientOptions
impl Debug for ClientOptions
Source§impl Default for ClientOptions
impl Default for ClientOptions
Source§impl<T: Into<ApiKey>> From<(T, ClientOptions)> for ClientOptions
impl<T: Into<ApiKey>> From<(T, ClientOptions)> for ClientOptions
Auto Trait Implementations§
impl Freeze for ClientOptions
impl !RefUnwindSafe for ClientOptions
impl Send for ClientOptions
impl !Sync for ClientOptions
impl Unpin for ClientOptions
impl !UnwindSafe for ClientOptions
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