Skip to main content

Crate loopengine

Crate loopengine 

Source
Expand description

Minimal, high-performance client for the LoopEngine Ingest API.

Create a Client with your project credentials, then call Client::send with your payload. All signing and HTTP details are handled inside the crate. The client is safe for concurrent use (it wraps a reqwest::Client which uses a connection pool internally).

§Quick start

use loopengine::Client;

#[tokio::main]
async fn main() {
    let client = Client::new("project_key", "project_secret", "project_id").unwrap();
    client
        .send(serde_json::json!({"message": "user feedback"}))
        .await
        .unwrap();
}

Structs§

Client
Sends feedback to the LoopEngine Ingest API. Safe for concurrent use.
ClientBuilder
Builder for Client. Obtain one via Client::builder.

Enums§

Error
Errors returned by crate::Client.