pub struct GenerateOut {
pub choices: Vec<CompletionChoice>,
pub created: i64,
pub id: String,
pub model: String,
pub object: String,
}
Fields§
§choices: Vec<CompletionChoice>
§created: i64
§id: String
§model: String
§object: String
Implementations§
Source§impl GenerateOut
impl GenerateOut
pub fn new( choices: Vec<CompletionChoice>, created: i64, id: String, model: String, object: String, ) -> GenerateOut
Trait Implementations§
Source§impl Clone for GenerateOut
impl Clone for GenerateOut
Source§fn clone(&self) -> GenerateOut
fn clone(&self) -> GenerateOut
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GenerateOut
impl Debug for GenerateOut
Source§impl Default for GenerateOut
impl Default for GenerateOut
Source§fn default() -> GenerateOut
fn default() -> GenerateOut
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GenerateOut
impl<'de> Deserialize<'de> for GenerateOut
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
Source§impl PartialEq for GenerateOut
impl PartialEq for GenerateOut
Source§impl Serialize for GenerateOut
impl Serialize for GenerateOut
impl StructuralPartialEq for GenerateOut
Auto Trait Implementations§
impl Freeze for GenerateOut
impl RefUnwindSafe for GenerateOut
impl Send for GenerateOut
impl Sync for GenerateOut
impl Unpin for GenerateOut
impl UnwindSafe for GenerateOut
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