pub struct ContentGenerationApiGenerateTextPost {
pub topic: String,
pub word_count: i64,
pub sub_topics: Option<Vec<String>>,
pub description: Option<String>,
pub meta_keywords: Option<Vec<String>>,
pub creativity_index: Option<f64>,
pub include_conclusion: Option<bool>,
pub supplement_token: Option<String>,
pub tag: Option<String>,
}Expand description
Request for content_generation/generate_text/live.
Fields§
§topic: StringMain topic of the content (1–50 tokens).
word_count: i64Target number of words, 1–1000.
sub_topics: Option<Vec<String>>Up to 10 secondary topics to cover.
description: Option<String>Meta description guiding the content (1–1000 tokens).
meta_keywords: Option<Vec<String>>Up to 10 keywords to weave into the content.
creativity_index: Option<f64>Randomness of token selection, 0–1 (default 0.8).
include_conclusion: Option<bool>Append a logical conclusion when true.
supplement_token: Option<String>Token from a previous response to continue that generation.
tag: Option<String>User-defined task identifier (max 255 characters).
Implementations§
Source§impl ContentGenerationApiGenerateTextPost
impl ContentGenerationApiGenerateTextPost
Sourcepub fn new(topic: &str, word_count: i64) -> ContentGenerationApiGenerateTextPost
pub fn new(topic: &str, word_count: i64) -> ContentGenerationApiGenerateTextPost
Creates a request for the given topic and target word count.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ContentGenerationApiGenerateTextPost
impl<'de> Deserialize<'de> for ContentGenerationApiGenerateTextPost
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 ContentGenerationApiGenerateTextPost
impl RefUnwindSafe for ContentGenerationApiGenerateTextPost
impl Send for ContentGenerationApiGenerateTextPost
impl Sync for ContentGenerationApiGenerateTextPost
impl Unpin for ContentGenerationApiGenerateTextPost
impl UnsafeUnpin for ContentGenerationApiGenerateTextPost
impl UnwindSafe for ContentGenerationApiGenerateTextPost
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