pub struct TextGenerationResponse {
pub model: String,
pub text: String,
pub thread_id: String,
pub usage: Option<TokenUsage>,
pub cost: Option<CostEstimate>,
}Fields§
§model: String§text: String§thread_id: String§usage: Option<TokenUsage>§cost: Option<CostEstimate>Trait Implementations§
Source§impl Clone for TextGenerationResponse
impl Clone for TextGenerationResponse
Source§fn clone(&self) -> TextGenerationResponse
fn clone(&self) -> TextGenerationResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TextGenerationResponse
impl Debug for TextGenerationResponse
Source§impl<'de> Deserialize<'de> for TextGenerationResponse
impl<'de> Deserialize<'de> for TextGenerationResponse
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 TextGenerationResponse
impl PartialEq for TextGenerationResponse
Source§impl Serialize for TextGenerationResponse
impl Serialize for TextGenerationResponse
impl StructuralPartialEq for TextGenerationResponse
Auto Trait Implementations§
impl Freeze for TextGenerationResponse
impl RefUnwindSafe for TextGenerationResponse
impl Send for TextGenerationResponse
impl Sync for TextGenerationResponse
impl Unpin for TextGenerationResponse
impl UnsafeUnpin for TextGenerationResponse
impl UnwindSafe for TextGenerationResponse
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