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