Skip to content
Trigora
Start building →

Rust client

Crate: trigora-client.

A token selects Cloud (TRIGORA_API_BASE_URL or https://api.trigora.dev). Otherwise the client uses TRIGORA_RUNTIME_URL or http://127.0.0.1:3477.

handle.send(name, payload)?;
handle.cancel()?;
handle.result()?;

result() polls until a terminal status. failed and cancelled return an error.

Program lists, version lists, and execution lists take Option<Page>. None omits both query parameters. projects().list() takes no page.

pub struct Page {
pub limit: Option<u64>,
pub cursor: Option<String>,
}
MethodHTTP
whoami()GET /v1/whoami
projects().list()GET /v1/projects
projects().create(body)POST /v1/projects
deploy(...)POST /v1/programs/deploy
programs().list(page)GET /v1/programs
programs().get(id)GET /v1/programs/:id
programs().versions(id, page)GET /v1/programs/:id/versions
executions().start(program, input)POST /v1/executions
executions().list(page)GET /v1/executions
handle sendPOST /v1/executions/:id/events
handle cancelPOST /v1/executions/:id/cancel
handle resultGET /v1/executions/:id/result

See Errors.