pub async fn capture(event: Event) -> Result<(), Error>
Capture the provided event, sending it to PostHog using the global client.