#clevercloud #sdk #logging #metrics #jsonschemas


A rust client and structures to interact with the Clever-Cloud API

32 releases

0.11.1 Jul 31, 2023
0.10.13 Mar 13, 2023
0.10.10 Nov 21, 2022
0.10.6 Jul 18, 2022
0.5.1 Nov 22, 2021

#27 in Email

Download history 10/week @ 2023-08-07 32/week @ 2023-08-14 64/week @ 2023-08-28 34/week @ 2023-09-04 2/week @ 2023-09-11 1/week @ 2023-09-18 5/week @ 2023-09-25 1/week @ 2023-10-02 1/week @ 2023-10-09 2/week @ 2023-10-16 7/week @ 2023-10-23 51/week @ 2023-10-30 37/week @ 2023-11-06 2/week @ 2023-11-13 33/week @ 2023-11-20

128 downloads per month

Custom license


Clever-Cloud Software Development Kit - Rust edition

crates.io Released API docs Continuous integration

This crate provides structures and a client to interact with the Clever-Cloud API.


This crate is under development, you can use it, but it may have bugs or unimplemented features.


To install this dependency, just add the following line to your Cargo.toml manifest.

clevercloud-sdk = { version = "^0.11.1", features = ["metrics", "jsonschemas"] }


Below, you will find an example of executing a request to get information about myself.

use std::error::Error;

use clevercloud_sdk::{Client, v2::myself::{self, Myself}};

async fn main() -> Result<(), Box<dyn Error + Send + Sync>> {
    let client = Client::from(Credentials {
        token: "".to_string(),
        secret: "".to_string(),
        consumer_key: "".to_string(),
        consumer_secret: "".to_string(),

    let _myself: Myself = myself::get(&client).await?;


You could found more examples of how you could use the clevercloud-sdk by looking at the command line example.


name description
trace Use tracing crate to expose traces
tokio Use tokio crate as back-end for tracing crate
jsonschemas Use schemars to add a derive instruction to generate json schemas representation of structures
logging Use the log facility crate to print logs. Implies oauth10a/logging feature
metrics Expose HTTP metrics through oauth10a crate feature.


Below, the exposed metrics gathered by prometheus:

name labels kind description
oauth10a_client_request endpoint: String, method: String, status: Integer Counter number of request on api
oauth10a_client_request_duration endpoint: String, method: String, status: Integer, unit: String Counter duration of request on api


See the license.

Getting in touch


~162K SLoC