30 releases

0.33.47 Aug 15, 2023
0.33.46 Aug 14, 2023
0.33.41 Jul 28, 2023
0.33.30 Jun 23, 2023
0.33.22 May 31, 2023

#1401 in Web programming

16,011 stars & 150 watchers

Apache-2.0

34KB
773 lines

Cube.js

WebsiteDocsExamplesBlogSlackTwitter

GitHub Actions Crates.io (latest) Documentation (latest)

CubeClient

API client for Cube.JS powered on Rust language

Models are generated from Cube.js Open API Specificiation.

Protocols

  • HTTP (v1)
  • WS (v1)

Example

use cubeclient::apis::{configuration::Configuration, default_api as cube_api};
use cubeclient::models::{V1LoadRequest, V1LoadRequestQuery};

let mut cube_config = Configuration::default();
cube_config.bearer_access_token = Some("my token".to_string());
cube_config.base_path = Some("https://myapi.mydomain.mysubdomain/".to_string());

let query = {}; // build your own query
let request = V1LoadRequest {
    query: Some(query),
    query_type: Some("multi".to_string()),
};
let response = cube_api::load_v1(&self.get_client_config_for_ctx(ctx), Some(request)).await?;

License

Apache 2.0 licensed

Dependencies

~7–18MB
~236K SLoC