openai-client-cli 0.1.1

OpenAI API client CLI
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::Result;
use std::path::Path;

/// A trait to create an object from a file.
pub trait FromFile
where
  Self: Sized
{
  /// Create an object from a file.
  fn from_file<P>(path: P) -> Result<Self>
  where
    P: AsRef<Path>;
}