pub struct ContentGenerationApiGenerateText {
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_text/live: text generated from a topic.
See https://docs.dataforseo.com/v3/content_generation/generate_text/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<'de> Deserialize<'de> for ContentGenerationApiGenerateText
impl<'de> Deserialize<'de> for ContentGenerationApiGenerateText
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 ContentGenerationApiGenerateText
impl RefUnwindSafe for ContentGenerationApiGenerateText
impl Send for ContentGenerationApiGenerateText
impl Sync for ContentGenerationApiGenerateText
impl Unpin for ContentGenerationApiGenerateText
impl UnsafeUnpin for ContentGenerationApiGenerateText
impl UnwindSafe for ContentGenerationApiGenerateText
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