pub struct CreateEditResponse {
pub object: String,
pub created: i32,
pub choices: Vec<CreateCompletionResponseChoicesInner>,
pub usage: Box<CreateCompletionResponseUsage>,
}
Fields§
§object: String
§created: i32
§choices: Vec<CreateCompletionResponseChoicesInner>
§usage: Box<CreateCompletionResponseUsage>
Implementations§
Source§impl CreateEditResponse
impl CreateEditResponse
pub fn new( object: String, created: i32, choices: Vec<CreateCompletionResponseChoicesInner>, usage: CreateCompletionResponseUsage, ) -> CreateEditResponse
Trait Implementations§
Source§impl Clone for CreateEditResponse
impl Clone for CreateEditResponse
Source§fn clone(&self) -> CreateEditResponse
fn clone(&self) -> CreateEditResponse
Returns a copy 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 CreateEditResponse
impl Debug for CreateEditResponse
Source§impl Default for CreateEditResponse
impl Default for CreateEditResponse
Source§fn default() -> CreateEditResponse
fn default() -> CreateEditResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateEditResponse
impl<'de> Deserialize<'de> for CreateEditResponse
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 CreateEditResponse
impl PartialEq for CreateEditResponse
Source§impl Serialize for CreateEditResponse
impl Serialize for CreateEditResponse
impl StructuralPartialEq for CreateEditResponse
Auto Trait Implementations§
impl Freeze for CreateEditResponse
impl RefUnwindSafe for CreateEditResponse
impl Send for CreateEditResponse
impl Sync for CreateEditResponse
impl Unpin for CreateEditResponse
impl UnwindSafe for CreateEditResponse
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