pub struct ContentGenerationCheckGrammarItem {
pub element_type: Option<String>,
pub message: Option<String>,
pub description: Option<String>,
pub suggestions: Option<Vec<String>>,
pub offset: Option<i64>,
pub length: Option<i64>,
pub rule_id: Option<String>,
pub rule_description: Option<String>,
pub rule_issue_type: Option<String>,
pub rule_category_id: Option<String>,
pub rule_category_name: Option<String>,
}Expand description
A single grammar or spelling error found in the text.
Fields§
§element_type: Option<String>Type of element.
message: Option<String>Message describing the grammar or spelling error.
description: Option<String>Description of the grammar or spelling error.
suggestions: Option<Vec<String>>Suggested corrections.
offset: Option<i64>Character offset of the error within the text.
length: Option<i64>Character length of the erroneous span.
rule_id: Option<String>ID of the grammar or spelling rule that flagged the error.
rule_description: Option<String>Description of the rule.
rule_issue_type: Option<String>Issue type flagged by the rule.
rule_category_id: Option<String>ID of the rule category.
rule_category_name: Option<String>Name of the rule category.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ContentGenerationCheckGrammarItem
impl<'de> Deserialize<'de> for ContentGenerationCheckGrammarItem
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 ContentGenerationCheckGrammarItem
impl RefUnwindSafe for ContentGenerationCheckGrammarItem
impl Send for ContentGenerationCheckGrammarItem
impl Sync for ContentGenerationCheckGrammarItem
impl Unpin for ContentGenerationCheckGrammarItem
impl UnsafeUnpin for ContentGenerationCheckGrammarItem
impl UnwindSafe for ContentGenerationCheckGrammarItem
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