Crates.io | cubeclient_rs |
lib.rs | cubeclient_rs |
version | 0.1.0 |
source | src |
created_at | 2024-03-01 01:29:50.734351 |
updated_at | 2024-03-01 01:29:50.734351 |
description | Client for Cube.js |
homepage | https://cube.dev |
repository | |
max_upload_size | |
id | 1158369 |
size | 28,584 |
API client for Cube.JS powered on Rust language
Models are generated from Cube.js Open API Specificiation.
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?;
Apache 2.0 licensed