1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
//! # klozeo
//!
//! Official Rust SDK for the [Klozeo](https://klozeo.com) Lead Management API.
//!
//! ## Quick Start
//!
//! ```rust,ignore
//! use klozeo::{Client, LeadInput};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), klozeo::Error> {
//! let client = Client::new("sk_live_your_api_key");
//!
//! // Create a lead
//! let resp = client.leads().create(
//! LeadInput::builder()
//! .name("Acme Corporation")
//! .source("website")
//! .city("San Francisco")
//! .email("contact@acme.com")
//! .rating(4.5)
//! .tags(vec!["enterprise".into(), "saas".into()])
//! .build(),
//! ).await?;
//!
//! println!("Created: {}", resp.id);
//! Ok(())
//! }
//! ```
//!
//! ## Filtering
//!
//! ```rust,ignore
//! use klozeo::filters::{city, rating};
//! use klozeo::types::{ListOptions, SortField, SortOrder};
//!
//! let result = client.leads().list(
//! ListOptions::builder()
//! .filter(city().eq("Berlin"))
//! .filter(rating().gte(4.0))
//! .sort(SortField::Rating, SortOrder::Desc)
//! .limit(20)
//! .build(),
//! ).await?;
//! ```
//!
//! ## Streaming
//!
//! ```rust,ignore
//! use futures::StreamExt;
//! use klozeo::filters::city;
//! use klozeo::types::ListOptions;
//!
//! let mut stream = client.leads().stream(
//! ListOptions::builder().filter(city().eq("Berlin")).build()
//! );
//! while let Some(result) = stream.next().await {
//! println!("{}", result?.name);
//! }
//! ```
// ─── Top-level re-exports ──────────────────────────────────────────────────
pub use ;
pub use ;
pub use ;