async-openai-wasm 0.31.2

Rust library for OpenAI on WASM
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::fmt::Display;

use crate::types::videos::VideoSize;

impl Display for VideoSize {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(
            f,
            "{}",
            match self {
                Self::S720x1280 => "720x1280",
                Self::S1280x720 => "1280x720",
                Self::S1024x1792 => "1024x1792",
                Self::S1792x1024 => "1792x1024",
            }
        )
    }
}