pub struct ContentGenerationApiGenerate {
pub input_tokens: Option<i64>,
pub output_tokens: Option<i64>,
pub new_tokens: Option<i64>,
pub generated_text: Option<String>,
pub supplement_token: Option<String>,
}Expand description
Result of content_generation/generate/live: text continued from the input.
See https://docs.dataforseo.com/v3/content_generation/generate/live/.
Fields§
§input_tokens: Option<i64>Number of input tokens.
output_tokens: Option<i64>Number of output tokens.
new_tokens: Option<i64>Number of newly generated tokens.
generated_text: Option<String>Resulting text.
supplement_token: Option<String>Token to continue this generation from its end in a follow-up request.
Trait Implementations§
Source§impl Clone for ContentGenerationApiGenerate
impl Clone for ContentGenerationApiGenerate
Source§impl Debug for ContentGenerationApiGenerate
impl Debug for ContentGenerationApiGenerate
Source§impl<'de> Deserialize<'de> for ContentGenerationApiGenerate
impl<'de> Deserialize<'de> for ContentGenerationApiGenerate
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 Freeze for ContentGenerationApiGenerate
impl RefUnwindSafe for ContentGenerationApiGenerate
impl Send for ContentGenerationApiGenerate
impl Sync for ContentGenerationApiGenerate
impl Unpin for ContentGenerationApiGenerate
impl UnsafeUnpin for ContentGenerationApiGenerate
impl UnwindSafe for ContentGenerationApiGenerate
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