1#![doc(html_root_url = "https://docs.rs/pulse-client/2.6.1")]
47#![warn(missing_debug_implementations)]
48#![warn(rust_2018_idioms)]
49
50mod client;
51mod duplex;
52mod error;
53mod events;
54mod iq;
55mod resources;
56mod streams;
57
58pub use client::{PulseClient, PulseClientBuilder};
59pub use duplex::{derive_ws_url, DuplexChannel, DuplexOutput};
60pub use error::PulseError;
61pub use events::{EventsResource, EventsStream};
62pub use iq::{iq_and, iq_leaf, iq_not, iq_or, IQQueryOptions, IQResource, IQScanOptions};
63pub use resources::{
64 AgentsResource, AuthResource, ConnectorsResource, ModelUpload, ModelsResource,
65 PipelinesResource, TemplatesResource, UsersResource,
66};
67pub use streams::{
68 aggs, windows, BranchSpec, BroadcastJoinOptions, CdcJoinOptions, CepOptions,
69 EnrichAsyncOptions, ExtractOptions, MapLlmOptions, MapOptions, McpCallOptions,
70 MlPredictOptions, StreamBuilder, StreamsResource, WindowOptions, WindowSpec,
71};
72
73pub use serde_json::Value;
76
77pub const VERSION: &str = "2.6.1";
79
80impl std::fmt::Debug for PulseClient {
81 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
82 f.debug_struct("PulseClient")
83 .field("base_url", &self.inner.base_url)
84 .field("token", &self.token().map(|_| "<set>"))
85 .finish()
86 }
87}
88
89impl<'c> std::fmt::Debug for AuthResource<'c> {
90 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
91 f.debug_struct("AuthResource").finish()
92 }
93}
94
95impl<'c> std::fmt::Debug for PipelinesResource<'c> {
96 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
97 f.debug_struct("PipelinesResource").finish()
98 }
99}
100
101impl<'c> std::fmt::Debug for AgentsResource<'c> {
102 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
103 f.debug_struct("AgentsResource").finish()
104 }
105}
106
107impl<'c> std::fmt::Debug for TemplatesResource<'c> {
108 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
109 f.debug_struct("TemplatesResource").finish()
110 }
111}
112
113impl<'c> std::fmt::Debug for UsersResource<'c> {
114 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
115 f.debug_struct("UsersResource").finish()
116 }
117}
118
119impl<'c> std::fmt::Debug for ConnectorsResource<'c> {
120 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
121 f.debug_struct("ConnectorsResource").finish()
122 }
123}
124
125impl<'c> std::fmt::Debug for ModelsResource<'c> {
126 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
127 f.debug_struct("ModelsResource").finish()
128 }
129}