30 stable releases
| 1.2.26 | Mar 21, 2025 |
|---|---|
| 1.2.25 | Mar 20, 2025 |
| 1.2.14 | Feb 28, 2025 |
#1749 in Web programming
16,011 stars & 150 watchers
60KB
1.5K
SLoC
Website • Docs • Examples • Blog • Slack • Twitter
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
~6–14MB
~227K SLoC
