pub struct ContentGenerationApiTextSummaryPost {
pub text: String,
pub language_name: Option<String>,
pub language_code: Option<String>,
pub internal_list_limit: Option<i32>,
pub tag: Option<String>,
}Expand description
Request for content_generation/text_summary/live.
Set exactly one of language_name or language_code.
Fields§
§text: StringText to analyze (1–10,000 tokens).
language_name: Option<String>Language name of the text; required unless language_code is set.
language_code: Option<String>Language code of the text; required unless language_name is set.
internal_list_limit: Option<i32>Maximum elements in the keyword_density array (default 10).
tag: Option<String>User-defined task identifier (max 255 characters).
Implementations§
Source§impl ContentGenerationApiTextSummaryPost
impl ContentGenerationApiTextSummaryPost
Sourcepub fn new(text: &str) -> ContentGenerationApiTextSummaryPost
pub fn new(text: &str) -> ContentGenerationApiTextSummaryPost
Creates a request that summarizes the given text.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ContentGenerationApiTextSummaryPost
impl<'de> Deserialize<'de> for ContentGenerationApiTextSummaryPost
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 ContentGenerationApiTextSummaryPost
impl RefUnwindSafe for ContentGenerationApiTextSummaryPost
impl Send for ContentGenerationApiTextSummaryPost
impl Sync for ContentGenerationApiTextSummaryPost
impl Unpin for ContentGenerationApiTextSummaryPost
impl UnsafeUnpin for ContentGenerationApiTextSummaryPost
impl UnwindSafe for ContentGenerationApiTextSummaryPost
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