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
//! `sift_rs` largely contains protobuf-generated code used to interact with Sift's gRPC API as well as some
//! utility wrappers. Due to [tonic](https://docs.rs/tonic/latest/tonic/) relying on
//! [tokio](https://docs.rs/tokio/latest/tokio/), it is required that users have `tokio` installed
//! in order to communicate with Sift over gRPC.
//!
//! ## Quickstart
//!
//! Start by installing `sift_rs`
//!
//! ```text
//! cargo add sift_rs
//! ```
//!
//! Then install `tokio`:
//!
//! ```text
//! cargo add tokio --features full
//! ```
//!
//! Then we can establish a connection to Sift and use one of the protobuf service clients like so:
//!
//! ```no_run
//! use sift_rs::{
//! Credentials, SiftChannelBuilder,
//! ping::v1::{PingRequest, ping_service_client::PingServiceClient},
//! };
//! use std::env;
//!
//! #[tokio::main]
//! async fn main() {
//! let credentials = Credentials::Config {
//! apikey: env::var("SIFT_TOKEN").unwrap(),
//! uri: env::var("SIFT_GRPC").unwrap(),
//! };
//!
//! let conn = SiftChannelBuilder::new(credentials).build().unwrap();
//! let mut ping_service = PingServiceClient::new(conn);
//! let ping_response = ping_service.ping(PingRequest::default()).await.unwrap();
//!
//! println!("{}", ping_response.into_inner().response);
//! }
//! ```
/// Protobuf generated code to interface with Sift's gRPC API.
pub use r#*;
/// Utility wrappers for select gRPC services.
/// Generic retry extension for gRPC wrapper services.
pub use ;
pub use ;
pub use CompressionEncoding;