Function raystack::eval::eval[][src]

pub async fn eval(
    client_seed: &ClientSeed,
    project_api_url: &str,
    username: &str,
    password: &str,
    axon_expr: &str,
    auth_token: Option<&str>
) -> Result<EvalOutput, EvalError>
Expand description

A standalone function to call the eval API on a SkySpark server, without creating a SkySparkClient.

Example

use raystack::ClientSeed;
use raystack::eval::eval;
let client_seed = ClientSeed::new(30).unwrap();
let url = "http://test.com/api/bigProject/";
let output = eval(&client_seed, url, "name", "p4ssw0rd", "readAll(site)", None).await.unwrap();
let grid = output.into_grid();
// Use the grid here