Crate posthog_rs

Source

Structs§

Client
A Client facilitates interactions with the PostHog API over HTTP.
ClientOptions
ClientOptionsBuilder
Builder for ClientOptions.
Event
An Event represents an interaction a user has with your app or website. Examples include button clicks, pageviews, query completions, and signups. See the PostHog documentation for a detailed explanation of PostHog Events.

Enums§

ClientOptionsBuilderError
Error type for ClientOptionsBuilder
Error

Functions§

capture
Capture the provided event, sending it to PostHog using the global client.
client
This function constructs a new client using the options provided.
disable_global
disable prevents the global client from being initialized. NOTE: It does not prevent use of the global client once initialized.
global_is_disabled
is_disabled returns true if the global client has been disabled. NOTE: A disabled global client can still be used as long as it was initialized before it was disabled.
init_global
init_global_client will initialize a globally available client singleton. This singleton can be used when you don’t need more than one instance and have no need to regularly change the client options.