VynFi Rust SDK
Official Rust client for the VynFi synthetic financial data API.
Installation
[]
= "0.2"
= { = "1", = ["rt-multi-thread", "macros"] }
For the blocking client:
[]
= { = "0.2", = ["blocking"] }
Quick Start
use ;
async
Blocking Client
use Client;
Resources
| Resource | Methods |
|---|---|
client.jobs() |
generate, generate_config, generate_quick, list, get, cancel, stream, download, download_file |
client.catalog() |
list_sectors, get_sector, list, get_fingerprint |
client.usage() |
summary, daily |
client.api_keys() |
create, list, get, update, revoke |
client.quality() |
scores, timeline |
client.webhooks() |
create, list, get, update, delete, test |
client.billing() |
subscription, checkout, portal, invoices, payment_method |
Error Handling
All methods return Result<T, VynFiError>. Match on error variants:
use VynFiError;
match client.jobs.get.await
Feature Flags
| Flag | Default | Description |
|---|---|---|
rustls-tls |
Yes | Use rustls for TLS |
native-tls |
No | Use platform-native TLS |
blocking |
No | Enable synchronous client |
License
Apache-2.0