rs_openai 0.5.0

The OpenAI Rust library provides convenient access to the OpenAI API from Rust applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::{Deserialize, Serialize};

#[derive(Debug, Deserialize, Clone, Serialize)]
pub struct EngineResponse {
    pub id: String,
    pub object: String,
    pub owner: String,
    pub ready: bool,
}

#[derive(Debug, Deserialize, Clone, Serialize)]
pub struct EngineListResponse {
    pub data: Vec<EngineResponse>,
    pub object: String,
}