Struct openai_gpt_rs::response::ChatResp
source · pub struct ChatResp {
pub id: String,
pub object: String,
pub created: u64,
pub choices: Vec<ChatChoice>,
pub usage: Usage,
}
Fields§
§id: String
§object: String
§created: u64
§choices: Vec<ChatChoice>
§usage: Usage
Trait Implementations§
source§impl Content for ChatResp
impl Content for ChatResp
fn get_content(&self, index: usize) -> Option<String>
fn get_contents<I>(&self, indices: I) -> Vec<String>where I: IntoIterator<Item = usize>,
source§impl<'de> Deserialize<'de> for ChatResp
impl<'de> Deserialize<'de> for ChatResp
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ChatResp
impl Send for ChatResp
impl Sync for ChatResp
impl Unpin for ChatResp
impl UnwindSafe for ChatResp
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more