# This file is generated by `scripts/check-public-api.sh --update`.
# Do not edit manually.
# Public API scope: exported Rust API for the posthog-rs crate with public-facing features enabled.
# Test-only harness features are omitted.
pub mod posthog_rs
pub enum posthog_rs::CaptureCompression
pub posthog_rs::CaptureCompression::Br
pub posthog_rs::CaptureCompression::Deflate
pub posthog_rs::CaptureCompression::Gzip
pub posthog_rs::CaptureCompression::Zstd
#[non_exhaustive] pub enum posthog_rs::ClientOptionsBuilderError
pub posthog_rs::ClientOptionsBuilderError::UninitializedField(&'static str)
pub posthog_rs::ClientOptionsBuilderError::ValidationError(alloc::string::String)
impl core::convert::From<alloc::string::String> for posthog_rs::ClientOptionsBuilderError
pub fn posthog_rs::ClientOptionsBuilderError::from(alloc::string::String) -> Self
impl core::convert::From<derive_builder::error::UninitializedFieldError> for posthog_rs::ClientOptionsBuilderError
pub fn posthog_rs::ClientOptionsBuilderError::from(derive_builder::error::UninitializedFieldError) -> Self
impl core::error::Error for posthog_rs::ClientOptionsBuilderError
impl core::fmt::Display for posthog_rs::ClientOptionsBuilderError
pub fn posthog_rs::ClientOptionsBuilderError::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
pub enum posthog_rs::Endpoint
pub posthog_rs::Endpoint::Batch
pub posthog_rs::Endpoint::Capture
pub posthog_rs::Endpoint::Flags
pub posthog_rs::Endpoint::LocalEvaluation
impl posthog_rs::Endpoint
pub fn posthog_rs::Endpoint::path(&self) -> &str
impl core::fmt::Display for posthog_rs::Endpoint
pub fn posthog_rs::Endpoint::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
#[non_exhaustive] pub enum posthog_rs::Error
pub posthog_rs::Error::AlreadyInitialized
pub posthog_rs::Error::BadRequest(alloc::string::String)
pub posthog_rs::Error::BillingLimitExceeded(alloc::string::String)
pub posthog_rs::Error::Connection(alloc::string::String)
pub posthog_rs::Error::InconclusiveMatch(alloc::string::String)
pub posthog_rs::Error::InvalidTimestamp(alloc::string::String)
pub posthog_rs::Error::NotInitialized
pub posthog_rs::Error::PanicHookAlreadyInstalled
pub posthog_rs::Error::RateLimit
pub posthog_rs::Error::Serialization(alloc::string::String)
pub posthog_rs::Error::ServerError
pub posthog_rs::Error::ServerError::message: alloc::string::String
pub posthog_rs::Error::ServerError::status: u16
pub posthog_rs::Error::Unauthorized
impl core::error::Error for posthog_rs::Error
impl core::fmt::Display for posthog_rs::Error
pub fn posthog_rs::Error::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
#[non_exhaustive] pub enum posthog_rs::ErrorTrackingOptionsBuilderError
pub posthog_rs::ErrorTrackingOptionsBuilderError::UninitializedField(&'static str)
pub posthog_rs::ErrorTrackingOptionsBuilderError::ValidationError(alloc::string::String)
impl core::convert::From<alloc::string::String> for posthog_rs::ErrorTrackingOptionsBuilderError
pub fn posthog_rs::ErrorTrackingOptionsBuilderError::from(alloc::string::String) -> Self
impl core::convert::From<derive_builder::error::UninitializedFieldError> for posthog_rs::ErrorTrackingOptionsBuilderError
pub fn posthog_rs::ErrorTrackingOptionsBuilderError::from(derive_builder::error::UninitializedFieldError) -> Self
impl core::error::Error for posthog_rs::ErrorTrackingOptionsBuilderError
impl core::fmt::Display for posthog_rs::ErrorTrackingOptionsBuilderError
pub fn posthog_rs::ErrorTrackingOptionsBuilderError::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
#[non_exhaustive] pub enum posthog_rs::EventStatus
pub posthog_rs::EventStatus::Drop
pub posthog_rs::EventStatus::Ok
pub posthog_rs::EventStatus::Retry
pub posthog_rs::EventStatus::Unknown
pub posthog_rs::EventStatus::Warning
pub enum posthog_rs::FeatureFlagsResponse
pub posthog_rs::FeatureFlagsResponse::Legacy
pub posthog_rs::FeatureFlagsResponse::Legacy::errors: core::option::Option<alloc::vec::Vec<alloc::string::String>>
pub posthog_rs::FeatureFlagsResponse::Legacy::feature_flag_payloads: std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>
pub posthog_rs::FeatureFlagsResponse::Legacy::feature_flags: std::collections::hash::map::HashMap<alloc::string::String, posthog_rs::FlagValue>
pub posthog_rs::FeatureFlagsResponse::V2
pub posthog_rs::FeatureFlagsResponse::V2::errors_while_computing_flags: bool
pub posthog_rs::FeatureFlagsResponse::V2::flags: std::collections::hash::map::HashMap<alloc::string::String, posthog_rs::FlagDetail>
pub posthog_rs::FeatureFlagsResponse::V2::quota_limited: bool
pub posthog_rs::FeatureFlagsResponse::V2::request_id: core::option::Option<alloc::string::String>
impl posthog_rs::FeatureFlagsResponse
pub fn posthog_rs::FeatureFlagsResponse::normalize(self) -> (std::collections::hash::map::HashMap<alloc::string::String, posthog_rs::FlagValue>, std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>)
pub enum posthog_rs::FlagValue
pub posthog_rs::FlagValue::Boolean(bool)
pub posthog_rs::FlagValue::String(alloc::string::String)
impl core::default::Default for posthog_rs::FlagValue
pub fn posthog_rs::FlagValue::default() -> Self
#[non_exhaustive] pub enum posthog_rs::PostHogError<'a>
pub posthog_rs::PostHogError::Capture(posthog_rs::CaptureFailure<'a>)
pub posthog_rs::PostHogError::FeatureFlags(posthog_rs::FlagsFailure<'a>)
pub posthog_rs::PostHogError::LocalEvaluation(posthog_rs::LocalEvaluationFailure<'a>)
pub struct posthog_rs::AsyncFlagPoller
impl posthog_rs::AsyncFlagPoller
pub async fn posthog_rs::AsyncFlagPoller::is_running(&self) -> bool
pub async fn posthog_rs::AsyncFlagPoller::load_flags(&self) -> core::result::Result<(), posthog_rs::Error>
pub fn posthog_rs::AsyncFlagPoller::new(posthog_rs::LocalEvaluationConfig, posthog_rs::FlagCache) -> Self
pub async fn posthog_rs::AsyncFlagPoller::start(&mut self)
pub async fn posthog_rs::AsyncFlagPoller::stop(&mut self)
impl core::ops::drop::Drop for posthog_rs::AsyncFlagPoller
pub fn posthog_rs::AsyncFlagPoller::drop(&mut self)
pub struct posthog_rs::BeforeSendHook(_)
impl posthog_rs::BeforeSendHook
pub fn posthog_rs::BeforeSendHook::new<F>(F) -> Self where F: core::ops::function::FnMut(posthog_rs::Event) -> core::option::Option<posthog_rs::Event> + core::marker::Send + 'static
pub struct posthog_rs::CaptureExceptionOptions
impl posthog_rs::CaptureExceptionOptions
pub fn posthog_rs::CaptureExceptionOptions::distinct_id<S: core::convert::Into<alloc::string::String>>(self, S) -> Self
pub fn posthog_rs::CaptureExceptionOptions::fingerprint<S: core::convert::Into<alloc::string::String>>(self, S) -> Self
pub fn posthog_rs::CaptureExceptionOptions::group<N: core::convert::Into<alloc::string::String>, I: core::convert::Into<alloc::string::String>>(self, N, I) -> Self
pub fn posthog_rs::CaptureExceptionOptions::level<S: core::convert::Into<alloc::string::String>>(self, S) -> Self
pub fn posthog_rs::CaptureExceptionOptions::new() -> Self
pub fn posthog_rs::CaptureExceptionOptions::property<K: core::convert::Into<alloc::string::String>, V: serde_core::ser::Serialize>(self, K, V) -> core::result::Result<Self, posthog_rs::Error>
#[non_exhaustive] pub struct posthog_rs::CaptureFailure<'a>
impl<'a> posthog_rs::CaptureFailure<'a>
pub fn posthog_rs::CaptureFailure<'a>::attempt(&self) -> u32
pub fn posthog_rs::CaptureFailure<'a>::error(&self) -> core::option::Option<&posthog_rs::Error>
pub fn posthog_rs::CaptureFailure<'a>::error_response(&self) -> core::option::Option<&posthog_rs::V1ErrorResponse>
pub fn posthog_rs::CaptureFailure<'a>::event_count(&self) -> usize
pub fn posthog_rs::CaptureFailure<'a>::event_results(&self) -> &std::collections::hash::map::HashMap<uuid::Uuid, posthog_rs::EventResult>
pub fn posthog_rs::CaptureFailure<'a>::historical_migration(&self) -> bool
pub fn posthog_rs::CaptureFailure<'a>::request_id(&self) -> core::option::Option<&uuid::Uuid>
pub fn posthog_rs::CaptureFailure<'a>::status(&self) -> core::option::Option<u16>
pub struct posthog_rs::CaptureResponse
pub posthog_rs::CaptureResponse::results: std::collections::hash::map::HashMap<uuid::Uuid, posthog_rs::EventResult>
#[non_exhaustive] pub struct posthog_rs::CaptureSummary
impl posthog_rs::CaptureSummary
pub fn posthog_rs::CaptureSummary::all_persisted(&self) -> bool
pub fn posthog_rs::CaptureSummary::event_results(&self) -> &std::collections::hash::map::HashMap<uuid::Uuid, posthog_rs::EventResult>
pub fn posthog_rs::CaptureSummary::not_persisted(&self) -> usize
pub fn posthog_rs::CaptureSummary::submitted(&self) -> usize
pub struct posthog_rs::Client
impl posthog_rs::Client
pub fn posthog_rs::Client::capture(&self, posthog_rs::Event)
pub fn posthog_rs::Client::capture_batch(&self, alloc::vec::Vec<posthog_rs::Event>, bool)
pub async fn posthog_rs::Client::capture_batch_immediate(&self, alloc::vec::Vec<posthog_rs::Event>, bool) -> core::result::Result<posthog_rs::CaptureSummary, posthog_rs::Error>
pub async fn posthog_rs::Client::capture_exception<E>(&self, &E) -> core::result::Result<(), posthog_rs::Error> where E: core::error::Error + ?core::marker::Sized
pub async fn posthog_rs::Client::capture_exception_with<E>(&self, &E, posthog_rs::CaptureExceptionOptions) -> core::result::Result<(), posthog_rs::Error> where E: core::error::Error + ?core::marker::Sized
pub async fn posthog_rs::Client::capture_immediate(&self, posthog_rs::Event) -> core::result::Result<posthog_rs::CaptureSummary, posthog_rs::Error>
pub fn posthog_rs::Client::evaluate_feature_flag_locally(&self, &posthog_rs::FeatureFlag, &str, &std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>, &std::collections::hash::map::HashMap<alloc::string::String, alloc::string::String>, &std::collections::hash::map::HashMap<alloc::string::String, std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>>) -> core::result::Result<posthog_rs::FlagValue, posthog_rs::Error>
pub async fn posthog_rs::Client::evaluate_flags<S: core::convert::Into<alloc::string::String>>(&self, S, posthog_rs::EvaluateFlagsOptions) -> core::result::Result<posthog_rs::FeatureFlagEvaluations, posthog_rs::Error>
pub async fn posthog_rs::Client::flush(&self)
pub async fn posthog_rs::Client::get_feature_flag<K: core::convert::Into<alloc::string::String>, D: core::convert::Into<alloc::string::String>>(&self, K, D, core::option::Option<std::collections::hash::map::HashMap<alloc::string::String, alloc::string::String>>, core::option::Option<std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>>, core::option::Option<std::collections::hash::map::HashMap<alloc::string::String, std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>>>) -> core::result::Result<core::option::Option<posthog_rs::FlagValue>, posthog_rs::Error>
pub async fn posthog_rs::Client::get_feature_flag_payload<K: core::convert::Into<alloc::string::String>, D: core::convert::Into<alloc::string::String>>(&self, K, D) -> core::result::Result<core::option::Option<serde_json::value::Value>, posthog_rs::Error>
pub async fn posthog_rs::Client::get_feature_flags<S: core::convert::Into<alloc::string::String>>(&self, S, core::option::Option<std::collections::hash::map::HashMap<alloc::string::String, alloc::string::String>>, core::option::Option<std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>>, core::option::Option<std::collections::hash::map::HashMap<alloc::string::String, std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>>>) -> core::result::Result<(std::collections::hash::map::HashMap<alloc::string::String, posthog_rs::FlagValue>, std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>), posthog_rs::Error>
pub async fn posthog_rs::Client::is_feature_enabled<K: core::convert::Into<alloc::string::String>, D: core::convert::Into<alloc::string::String>>(&self, K, D, core::option::Option<std::collections::hash::map::HashMap<alloc::string::String, alloc::string::String>>, core::option::Option<std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>>, core::option::Option<std::collections::hash::map::HashMap<alloc::string::String, std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>>>) -> core::result::Result<bool, posthog_rs::Error>
pub async fn posthog_rs::Client::shutdown(&self)
impl core::ops::drop::Drop for posthog_rs::Client
pub fn posthog_rs::Client::drop(&mut self)
pub struct posthog_rs::ClientOptions
impl posthog_rs::ClientOptions
pub fn posthog_rs::ClientOptions::is_disabled(&self) -> bool
impl core::convert::From<&str> for posthog_rs::ClientOptions
pub fn posthog_rs::ClientOptions::from(&str) -> Self
impl core::convert::From<(&str, &str)> for posthog_rs::ClientOptions
pub fn posthog_rs::ClientOptions::from((&str, &str)) -> Self
pub struct posthog_rs::ClientOptionsBuilder
impl posthog_rs::ClientOptionsBuilder
pub fn posthog_rs::ClientOptionsBuilder::api_key(&mut self, alloc::string::String) -> &mut Self
pub fn posthog_rs::ClientOptionsBuilder::capture_compression(&mut self, posthog_rs::CaptureCompression) -> &mut Self
pub fn posthog_rs::ClientOptionsBuilder::disable_geoip(&mut self, bool) -> &mut Self
pub fn posthog_rs::ClientOptionsBuilder::disabled(&mut self, bool) -> &mut Self
pub fn posthog_rs::ClientOptionsBuilder::enable_local_evaluation(&mut self, bool) -> &mut Self
pub fn posthog_rs::ClientOptionsBuilder::error_tracking(&mut self, posthog_rs::ErrorTrackingOptions) -> &mut Self
pub fn posthog_rs::ClientOptionsBuilder::feature_flags_request_max_retries(&mut self, u32) -> &mut Self
pub fn posthog_rs::ClientOptionsBuilder::feature_flags_request_timeout_seconds(&mut self, u64) -> &mut Self
pub fn posthog_rs::ClientOptionsBuilder::flush_at(&mut self, usize) -> &mut Self
pub fn posthog_rs::ClientOptionsBuilder::flush_interval_ms(&mut self, u64) -> &mut Self
pub fn posthog_rs::ClientOptionsBuilder::host<VALUE: core::convert::Into<alloc::string::String>>(&mut self, VALUE) -> &mut Self
pub fn posthog_rs::ClientOptionsBuilder::is_server(&mut self, bool) -> &mut Self
pub fn posthog_rs::ClientOptionsBuilder::local_evaluation_only(&mut self, bool) -> &mut Self
pub fn posthog_rs::ClientOptionsBuilder::max_batch_size(&mut self, usize) -> &mut Self
pub fn posthog_rs::ClientOptionsBuilder::max_capture_attempts(&mut self, u32) -> &mut Self
pub fn posthog_rs::ClientOptionsBuilder::max_queue_size(&mut self, usize) -> &mut Self
pub fn posthog_rs::ClientOptionsBuilder::poll_interval_seconds(&mut self, u64) -> &mut Self
pub fn posthog_rs::ClientOptionsBuilder::request_timeout_seconds(&mut self, u64) -> &mut Self
pub fn posthog_rs::ClientOptionsBuilder::retry_initial_backoff_ms(&mut self, u64) -> &mut Self
pub fn posthog_rs::ClientOptionsBuilder::retry_max_backoff_ms(&mut self, u64) -> &mut Self
pub fn posthog_rs::ClientOptionsBuilder::secret_key<VALUE: core::convert::Into<alloc::string::String>>(&mut self, VALUE) -> &mut Self
pub fn posthog_rs::ClientOptionsBuilder::shutdown_timeout_ms(&mut self, u64) -> &mut Self
impl posthog_rs::ClientOptionsBuilder
pub fn posthog_rs::ClientOptionsBuilder::before_send<F>(&mut self, F) -> &mut Self where F: core::ops::function::FnMut(posthog_rs::Event) -> core::option::Option<posthog_rs::Event> + core::marker::Send + 'static
pub fn posthog_rs::ClientOptionsBuilder::build(&self) -> core::result::Result<posthog_rs::ClientOptions, posthog_rs::ClientOptionsBuilderError>
pub fn posthog_rs::ClientOptionsBuilder::on_error<F>(&mut self, F) -> &mut Self where F: core::ops::function::Fn(&posthog_rs::PostHogError<'_>) + core::marker::Send + core::marker::Sync + 'static
pub fn posthog_rs::ClientOptionsBuilder::personal_api_key<VALUE: core::convert::Into<alloc::string::String>>(&mut self, VALUE) -> &mut Self
impl core::default::Default for posthog_rs::ClientOptionsBuilder
pub fn posthog_rs::ClientOptionsBuilder::default() -> Self
pub struct posthog_rs::Cohort
pub posthog_rs::Cohort::id: alloc::string::String
pub posthog_rs::Cohort::name: alloc::string::String
pub posthog_rs::Cohort::properties: serde_json::value::Value
pub struct posthog_rs::CohortDefinition
pub posthog_rs::CohortDefinition::id: alloc::string::String
pub posthog_rs::CohortDefinition::properties: serde_json::value::Value
impl posthog_rs::CohortDefinition
pub fn posthog_rs::CohortDefinition::new(alloc::string::String, alloc::vec::Vec<posthog_rs::Property>) -> Self
pub fn posthog_rs::CohortDefinition::parse_properties(&self) -> alloc::vec::Vec<posthog_rs::Property>
pub struct posthog_rs::EndpointManager
impl posthog_rs::EndpointManager
pub fn posthog_rs::EndpointManager::api_host(&self) -> alloc::string::String
pub fn posthog_rs::EndpointManager::base_host(&self) -> &str
pub fn posthog_rs::EndpointManager::build_custom_url(&self, &str) -> alloc::string::String
pub fn posthog_rs::EndpointManager::build_local_eval_url(&self, &str) -> alloc::string::String
pub fn posthog_rs::EndpointManager::build_url(&self, posthog_rs::Endpoint) -> alloc::string::String
pub fn posthog_rs::EndpointManager::determine_server_host(&str) -> alloc::string::String
pub fn posthog_rs::EndpointManager::new(alloc::string::String) -> Self
pub fn posthog_rs::EndpointManager::raw_host(&self) -> &str
pub struct posthog_rs::ErrorTrackingOptions
impl core::default::Default for posthog_rs::ErrorTrackingOptions
pub fn posthog_rs::ErrorTrackingOptions::default() -> Self
pub struct posthog_rs::ErrorTrackingOptionsBuilder
impl posthog_rs::ErrorTrackingOptionsBuilder
pub fn posthog_rs::ErrorTrackingOptionsBuilder::build(&self) -> core::result::Result<posthog_rs::ErrorTrackingOptions, posthog_rs::ErrorTrackingOptionsBuilderError>
pub fn posthog_rs::ErrorTrackingOptionsBuilder::capture_panics(&mut self, bool) -> &mut Self
pub fn posthog_rs::ErrorTrackingOptionsBuilder::capture_stacktrace(&mut self, bool) -> &mut Self
pub fn posthog_rs::ErrorTrackingOptionsBuilder::in_app_exclude_paths(&mut self, alloc::vec::Vec<alloc::string::String>) -> &mut Self
pub fn posthog_rs::ErrorTrackingOptionsBuilder::in_app_include_paths(&mut self, alloc::vec::Vec<alloc::string::String>) -> &mut Self
impl core::default::Default for posthog_rs::ErrorTrackingOptionsBuilder
pub fn posthog_rs::ErrorTrackingOptionsBuilder::default() -> Self
pub struct posthog_rs::EvaluateFlagsOptions
pub posthog_rs::EvaluateFlagsOptions::disable_geoip: core::option::Option<bool>
pub posthog_rs::EvaluateFlagsOptions::flag_keys: core::option::Option<alloc::vec::Vec<alloc::string::String>>
pub posthog_rs::EvaluateFlagsOptions::group_properties: core::option::Option<std::collections::hash::map::HashMap<alloc::string::String, std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>>>
pub posthog_rs::EvaluateFlagsOptions::groups: core::option::Option<std::collections::hash::map::HashMap<alloc::string::String, alloc::string::String>>
pub posthog_rs::EvaluateFlagsOptions::only_evaluate_locally: bool
pub posthog_rs::EvaluateFlagsOptions::person_properties: core::option::Option<std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>>
pub struct posthog_rs::EvaluationContext<'a>
pub posthog_rs::EvaluationContext::cohorts: &'a std::collections::hash::map::HashMap<alloc::string::String, posthog_rs::CohortDefinition>
pub posthog_rs::EvaluationContext::distinct_id: &'a str
pub posthog_rs::EvaluationContext::flags: &'a std::collections::hash::map::HashMap<alloc::string::String, posthog_rs::FeatureFlag>
pub posthog_rs::EvaluationContext::group_properties: &'a std::collections::hash::map::HashMap<alloc::string::String, std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>>
pub posthog_rs::EvaluationContext::group_type_mapping: &'a std::collections::hash::map::HashMap<alloc::string::String, alloc::string::String>
pub posthog_rs::EvaluationContext::groups: &'a std::collections::hash::map::HashMap<alloc::string::String, alloc::string::String>
pub struct posthog_rs::Event
impl posthog_rs::Event
pub fn posthog_rs::Event::add_group(&mut self, &str, &str)
pub fn posthog_rs::Event::distinct_id(&self) -> &str
pub fn posthog_rs::Event::event_name(&self) -> &str
pub fn posthog_rs::Event::insert_prop<K: core::convert::Into<alloc::string::String>, P: serde_core::ser::Serialize>(&mut self, K, P) -> core::result::Result<(), posthog_rs::Error>
pub fn posthog_rs::Event::new<S: core::convert::Into<alloc::string::String>>(S, S) -> Self
pub fn posthog_rs::Event::new_anon<S: core::convert::Into<alloc::string::String>>(S) -> Self
pub fn posthog_rs::Event::properties(&self) -> &std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>
pub fn posthog_rs::Event::remove_prop(&mut self, &str) -> core::option::Option<serde_json::value::Value>
pub fn posthog_rs::Event::set_timestamp<Tz>(&mut self, chrono::datetime::DateTime<Tz>) -> core::result::Result<(), posthog_rs::Error> where Tz: chrono::offset::TimeZone
pub fn posthog_rs::Event::set_uuid(&mut self, uuid::Uuid)
pub fn posthog_rs::Event::with_flags(&mut self, &posthog_rs::FeatureFlagEvaluations) -> &mut Self
pub struct posthog_rs::EventResult
pub posthog_rs::EventResult::details: core::option::Option<alloc::string::String>
pub posthog_rs::EventResult::result: posthog_rs::EventStatus
pub struct posthog_rs::FeatureFlag
pub posthog_rs::FeatureFlag::active: bool
pub posthog_rs::FeatureFlag::filters: posthog_rs::FeatureFlagFilters
pub posthog_rs::FeatureFlag::key: alloc::string::String
pub struct posthog_rs::FeatureFlagCondition
pub posthog_rs::FeatureFlagCondition::aggregation_group_type_index: core::option::Option<i32>
pub posthog_rs::FeatureFlagCondition::properties: alloc::vec::Vec<posthog_rs::Property>
pub posthog_rs::FeatureFlagCondition::rollout_percentage: core::option::Option<f64>
pub posthog_rs::FeatureFlagCondition::variant: core::option::Option<alloc::string::String>
pub struct posthog_rs::FeatureFlagEvaluations
impl posthog_rs::FeatureFlagEvaluations
pub fn posthog_rs::FeatureFlagEvaluations::get_flag(&self, &str) -> core::option::Option<posthog_rs::FlagValue>
pub fn posthog_rs::FeatureFlagEvaluations::get_flag_payload(&self, &str) -> core::option::Option<serde_json::value::Value>
pub fn posthog_rs::FeatureFlagEvaluations::is_enabled(&self, &str) -> bool
pub fn posthog_rs::FeatureFlagEvaluations::keys(&self) -> alloc::vec::Vec<alloc::string::String>
pub fn posthog_rs::FeatureFlagEvaluations::only(&self, &[&str]) -> Self
pub fn posthog_rs::FeatureFlagEvaluations::only_accessed(&self) -> Self
impl core::fmt::Debug for posthog_rs::FeatureFlagEvaluations
pub fn posthog_rs::FeatureFlagEvaluations::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
pub struct posthog_rs::FeatureFlagFilters
pub posthog_rs::FeatureFlagFilters::aggregation_group_type_index: core::option::Option<i32>
pub posthog_rs::FeatureFlagFilters::early_exit: bool
pub posthog_rs::FeatureFlagFilters::groups: alloc::vec::Vec<posthog_rs::FeatureFlagCondition>
pub posthog_rs::FeatureFlagFilters::multivariate: core::option::Option<posthog_rs::MultivariateFilter>
pub posthog_rs::FeatureFlagFilters::payloads: std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>
pub struct posthog_rs::FlagCache
impl posthog_rs::FlagCache
pub fn posthog_rs::FlagCache::clear(&self)
pub fn posthog_rs::FlagCache::get_all_cohorts(&self) -> std::collections::hash::map::HashMap<alloc::string::String, posthog_rs::Cohort>
pub fn posthog_rs::FlagCache::get_all_flags(&self) -> alloc::vec::Vec<posthog_rs::FeatureFlag>
pub fn posthog_rs::FlagCache::get_cohort(&self, &str) -> core::option::Option<posthog_rs::Cohort>
pub fn posthog_rs::FlagCache::get_cohort_definitions(&self) -> std::collections::hash::map::HashMap<alloc::string::String, posthog_rs::CohortDefinition>
pub fn posthog_rs::FlagCache::get_flag(&self, &str) -> core::option::Option<posthog_rs::FeatureFlag>
pub fn posthog_rs::FlagCache::get_flags_map(&self) -> std::collections::hash::map::HashMap<alloc::string::String, posthog_rs::FeatureFlag>
pub fn posthog_rs::FlagCache::get_group_type_mapping(&self) -> std::collections::hash::map::HashMap<alloc::string::String, alloc::string::String>
pub fn posthog_rs::FlagCache::new() -> Self
pub fn posthog_rs::FlagCache::update(&self, posthog_rs::LocalEvaluationResponse)
impl core::default::Default for posthog_rs::FlagCache
pub fn posthog_rs::FlagCache::default() -> Self
pub struct posthog_rs::FlagDetail
pub posthog_rs::FlagDetail::enabled: bool
pub posthog_rs::FlagDetail::key: alloc::string::String
pub posthog_rs::FlagDetail::metadata: core::option::Option<posthog_rs::FlagMetadata>
pub posthog_rs::FlagDetail::reason: core::option::Option<posthog_rs::FlagReason>
pub posthog_rs::FlagDetail::variant: core::option::Option<alloc::string::String>
pub struct posthog_rs::FlagMetadata
pub posthog_rs::FlagMetadata::description: core::option::Option<alloc::string::String>
pub posthog_rs::FlagMetadata::id: u64
pub posthog_rs::FlagMetadata::payload: core::option::Option<serde_json::value::Value>
pub posthog_rs::FlagMetadata::version: u32
pub struct posthog_rs::FlagPoller
impl posthog_rs::FlagPoller
pub fn posthog_rs::FlagPoller::load_flags(&self) -> core::result::Result<(), posthog_rs::Error>
pub fn posthog_rs::FlagPoller::new(posthog_rs::LocalEvaluationConfig, posthog_rs::FlagCache) -> Self
pub fn posthog_rs::FlagPoller::start(&mut self)
pub fn posthog_rs::FlagPoller::stop(&mut self)
impl core::ops::drop::Drop for posthog_rs::FlagPoller
pub fn posthog_rs::FlagPoller::drop(&mut self)
pub struct posthog_rs::FlagReason
pub posthog_rs::FlagReason::code: alloc::string::String
pub posthog_rs::FlagReason::condition_index: core::option::Option<usize>
pub posthog_rs::FlagReason::description: core::option::Option<alloc::string::String>
#[non_exhaustive] pub struct posthog_rs::FlagsFailure<'a>
impl<'a> posthog_rs::FlagsFailure<'a>
pub fn posthog_rs::FlagsFailure<'a>::body(&self) -> core::option::Option<&str>
pub fn posthog_rs::FlagsFailure<'a>::distinct_id(&self) -> core::option::Option<&str>
pub fn posthog_rs::FlagsFailure<'a>::endpoint(&self) -> &str
pub fn posthog_rs::FlagsFailure<'a>::error(&self) -> &posthog_rs::Error
pub fn posthog_rs::FlagsFailure<'a>::status(&self) -> core::option::Option<u16>
pub struct posthog_rs::InconclusiveMatchError
pub posthog_rs::InconclusiveMatchError::message: alloc::string::String
impl posthog_rs::InconclusiveMatchError
pub fn posthog_rs::InconclusiveMatchError::new(&str) -> Self
impl core::error::Error for posthog_rs::InconclusiveMatchError
impl core::fmt::Display for posthog_rs::InconclusiveMatchError
pub fn posthog_rs::InconclusiveMatchError::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
pub struct posthog_rs::LocalEvaluationConfig
pub posthog_rs::LocalEvaluationConfig::api_host: alloc::string::String
pub posthog_rs::LocalEvaluationConfig::personal_api_key: alloc::string::String
pub posthog_rs::LocalEvaluationConfig::poll_interval: core::time::Duration
pub posthog_rs::LocalEvaluationConfig::project_api_key: alloc::string::String
pub posthog_rs::LocalEvaluationConfig::request_timeout: core::time::Duration
#[non_exhaustive] pub struct posthog_rs::LocalEvaluationFailure<'a>
impl<'a> posthog_rs::LocalEvaluationFailure<'a>
pub fn posthog_rs::LocalEvaluationFailure<'a>::error(&self) -> &posthog_rs::Error
pub fn posthog_rs::LocalEvaluationFailure<'a>::status(&self) -> core::option::Option<u16>
pub struct posthog_rs::LocalEvaluationResponse
pub posthog_rs::LocalEvaluationResponse::cohorts: std::collections::hash::map::HashMap<alloc::string::String, posthog_rs::Cohort>
pub posthog_rs::LocalEvaluationResponse::flags: alloc::vec::Vec<posthog_rs::FeatureFlag>
pub posthog_rs::LocalEvaluationResponse::group_type_mapping: std::collections::hash::map::HashMap<alloc::string::String, alloc::string::String>
pub struct posthog_rs::LocalEvaluator
impl posthog_rs::LocalEvaluator
pub fn posthog_rs::LocalEvaluator::cache(&self) -> &posthog_rs::FlagCache
pub fn posthog_rs::LocalEvaluator::evaluate_all_flags(&self, &str, &std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>, &std::collections::hash::map::HashMap<alloc::string::String, alloc::string::String>, &std::collections::hash::map::HashMap<alloc::string::String, std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>>) -> std::collections::hash::map::HashMap<alloc::string::String, core::result::Result<posthog_rs::FlagValue, posthog_rs::InconclusiveMatchError>>
pub fn posthog_rs::LocalEvaluator::evaluate_flag(&self, &str, &str, &std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>, &std::collections::hash::map::HashMap<alloc::string::String, alloc::string::String>, &std::collections::hash::map::HashMap<alloc::string::String, std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>>) -> core::result::Result<core::option::Option<posthog_rs::FlagValue>, posthog_rs::InconclusiveMatchError>
pub fn posthog_rs::LocalEvaluator::evaluate_flag_simple(&self, &str, &str, &std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>, &std::collections::hash::map::HashMap<alloc::string::String, alloc::string::String>, &std::collections::hash::map::HashMap<alloc::string::String, std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>>) -> core::result::Result<core::option::Option<posthog_rs::FlagValue>, posthog_rs::InconclusiveMatchError>
pub fn posthog_rs::LocalEvaluator::new(posthog_rs::FlagCache) -> Self
pub struct posthog_rs::MultivariateFilter
pub posthog_rs::MultivariateFilter::variants: alloc::vec::Vec<posthog_rs::MultivariateVariant>
pub struct posthog_rs::MultivariateVariant
pub posthog_rs::MultivariateVariant::key: alloc::string::String
pub posthog_rs::MultivariateVariant::rollout_percentage: f64
pub struct posthog_rs::Property
pub posthog_rs::Property::key: alloc::string::String
pub posthog_rs::Property::operator: alloc::string::String
pub posthog_rs::Property::property_type: core::option::Option<alloc::string::String>
pub posthog_rs::Property::value: serde_json::value::Value
#[non_exhaustive] pub struct posthog_rs::V1ErrorResponse
pub posthog_rs::V1ErrorResponse::error: alloc::string::String
pub posthog_rs::V1ErrorResponse::error_description: core::option::Option<alloc::string::String>
pub posthog_rs::V1ErrorResponse::error_uri: core::option::Option<alloc::string::String>
pub const posthog_rs::DEFAULT_HOST: &str
pub const posthog_rs::EU_INGESTION_ENDPOINT: &str
pub const posthog_rs::US_INGESTION_ENDPOINT: &str
pub fn posthog_rs::capture(posthog_rs::Event)
pub async fn posthog_rs::capture_exception<E>(&E) -> core::result::Result<(), posthog_rs::Error> where E: core::error::Error + ?core::marker::Sized
pub async fn posthog_rs::capture_exception_with<E>(&E, posthog_rs::CaptureExceptionOptions) -> core::result::Result<(), posthog_rs::Error> where E: core::error::Error + ?core::marker::Sized
pub async fn posthog_rs::client<C: core::convert::Into<posthog_rs::ClientOptions>>(C) -> posthog_rs::Client
pub fn posthog_rs::disable_global()
pub async fn posthog_rs::flush()
pub fn posthog_rs::global_is_disabled() -> bool
pub async fn posthog_rs::init_global<C: core::convert::Into<posthog_rs::ClientOptions>>(C) -> core::result::Result<(), posthog_rs::Error>
pub fn posthog_rs::match_feature_flag(&posthog_rs::FeatureFlag, &str, &std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>, &std::collections::hash::map::HashMap<alloc::string::String, alloc::string::String>, &std::collections::hash::map::HashMap<alloc::string::String, std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>>, &std::collections::hash::map::HashMap<alloc::string::String, alloc::string::String>) -> core::result::Result<posthog_rs::FlagValue, posthog_rs::InconclusiveMatchError>
pub fn posthog_rs::match_feature_flag_with_context(&posthog_rs::FeatureFlag, &std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>, &posthog_rs::EvaluationContext<'_>) -> core::result::Result<posthog_rs::FlagValue, posthog_rs::InconclusiveMatchError>
pub fn posthog_rs::match_property_with_context(&posthog_rs::Property, &std::collections::hash::map::HashMap<alloc::string::String, serde_json::value::Value>, &posthog_rs::EvaluationContext<'_>) -> core::result::Result<bool, posthog_rs::InconclusiveMatchError>
pub async fn posthog_rs::shutdown()