Expand description
Outlit analytics SDK for Rust.
§Example
use outlit::{Outlit, email};
use std::time::Duration;
#[tokio::main]
async fn main() -> Result<(), outlit::Error> {
let client = Outlit::builder("pk_xxx")
.flush_interval(Duration::from_secs(5))
.build()?;
client.track("signup", email("user@example.com"))
.property("plan", "pro")
.send()
.await?;
client.shutdown().await?;
Ok(())
}Re-exports§
pub use types::BillingStatus;pub use types::IngestPayload;pub use types::IngestResponse;pub use types::JourneyStage;pub use types::SourceType;pub use types::TrackerEvent;
Modules§
- types
- Event types and serialization.
Structs§
- Config
- Outlit client configuration.
- Customer
Methods - Customer billing methods.
- Email identity wrapper.
- Fingerprint
- Fingerprint identity wrapper (device identifier).
- Outlit
- Outlit analytics client.
- Outlit
Builder - Builder for Outlit client.
- Sendable
Billing - Sendable billing event builder.
- Sendable
Identify - Sendable identify event builder.
- Sendable
Stage - Sendable stage event builder.
- Sendable
Track - Sendable track event builder.
- UserId
- User ID identity wrapper.
- User
Methods - User journey stage methods.
Enums§
- Error
- Errors that can occur when using the Outlit SDK.
Functions§
- Create an email identity.
- fingerprint
- Create a fingerprint identity (device identifier).
- user_id
- Create a user ID identity.