#![doc(html_root_url = "https://docs.rs/pulse-client/2.6.0")]
#![warn(missing_debug_implementations)]
#![warn(rust_2018_idioms)]
mod client;
mod error;
mod events;
mod iq;
mod resources;
mod streams;
pub use client::{PulseClient, PulseClientBuilder};
pub use error::PulseError;
pub use events::{EventsResource, EventsStream};
pub use iq::{iq_and, iq_leaf, iq_not, iq_or, IQQueryOptions, IQResource, IQScanOptions};
pub use resources::{
AgentsResource, AuthResource, PipelinesResource, TemplatesResource, UsersResource,
};
pub use streams::{
aggs, windows, BranchSpec, BroadcastJoinOptions, CdcJoinOptions, CepOptions,
EnrichAsyncOptions, MapOptions, StreamBuilder, StreamsResource, WindowOptions, WindowSpec,
};
pub use serde_json::Value;
pub const VERSION: &str = "2.6.0";
impl std::fmt::Debug for PulseClient {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("PulseClient")
.field("base_url", &self.inner.base_url)
.field("token", &self.token().map(|_| "<set>"))
.finish()
}
}
impl<'c> std::fmt::Debug for AuthResource<'c> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("AuthResource").finish()
}
}
impl<'c> std::fmt::Debug for PipelinesResource<'c> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("PipelinesResource").finish()
}
}
impl<'c> std::fmt::Debug for AgentsResource<'c> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("AgentsResource").finish()
}
}
impl<'c> std::fmt::Debug for TemplatesResource<'c> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("TemplatesResource").finish()
}
}
impl<'c> std::fmt::Debug for UsersResource<'c> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("UsersResource").finish()
}
}