Expand description
VynFi Rust SDK — synthetic financial data generation.
§Example
use vynfi::Client;
#[tokio::main]
async fn main() -> Result<(), vynfi::VynFiError> {
let client = Client::builder("vf_live_...").build()?;
let sectors = client.catalog().list_sectors().await?;
Ok(())
}Structs§
- ApiKey
- An existing API key (secret not included).
- ApiKey
Created - A newly created API key (includes the full secret).
- ApiKeys
- API-key management resource — create, list, update, and revoke API keys.
- Catalog
- Catalog resource — browse sectors and their table definitions.
- Client
- Async VynFi API client.
- Client
Builder - Builder for configuring and constructing a
Client. - Column
- A column definition within a table.
- Create
ApiKey Request - Request body for creating an API key.
- Credit
Balance - Prepaid credit balance.
- Credit
Batch - A single prepaid credit batch.
- Credit
History - Credit purchase history.
- Credit
History Batch - A credit batch with full history details.
- Credits
- Credits resource — purchase credit packs and view prepaid balance.
- Daily
Usage - Credits consumed on a single day.
- Daily
Usage Response - Daily usage breakdown with per-table totals.
- Download
Response - Response from the download endpoint (presigned URL).
- Error
Body - Structured error body from the VynFi API (RFC 7807).
- Field
Error - A single field-level validation error.
- Generate
Request - Request body for generating synthetic data.
- Job
- A generation job.
- JobList
- Paginated list of jobs.
- Jobs
- Jobs resource — submit, list, get, and download generation jobs.
- List
Jobs Params - Parameters for listing jobs.
- Purchase
Credits Request - Request body for purchasing a credit pack.
- Purchase
Credits Response - Response from purchasing credits (Stripe checkout URL).
- Sector
- A full sector with its tables.
- Sector
Summary - Abbreviated sector information (no tables).
- Submit
JobResponse - Response from submitting an async generation job.
- Table
Def - A table definition within a sector.
- Table
Spec - A table specification within a generation request.
- Update
ApiKey Request - Request body for updating an API key.
- Usage
- Usage resource — credit balance and daily usage breakdown.
- Usage
Summary - Credit usage summary.
Enums§
- VynFi
Error - All errors returned by the VynFi SDK.