pub struct ParsedUtterance {
pub speaker: String,
pub language: String,
pub original_text: String,
pub english_translation: String,
pub corrected_natural_text: Option<String>,
pub coaching: Vec<String>,
pub annotations: Vec<String>,
}Expand description
One validated chunk-local utterance parsed from the raw Gemini response.
Fields§
§speaker: StringExact chunk-local speaker label.
language: StringLowercase ISO 639-3 language code for this utterance.
original_text: StringComplete utterance in the language spoken.
english_translation: StringComplete English translation, or an empty string for English.
corrected_natural_text: Option<String>Corrected natural version for audibly non-native speech, when applicable.
coaching: Vec<String>Concise grammar, vocabulary, pronunciation, stress, and rhythm coaching.
annotations: Vec<String>Concise audible annotations that belong to this utterance.
Trait Implementations§
Source§impl Clone for ParsedUtterance
impl Clone for ParsedUtterance
Source§fn clone(&self) -> ParsedUtterance
fn clone(&self) -> ParsedUtterance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParsedUtterance
impl Debug for ParsedUtterance
Source§impl<'de> Deserialize<'de> for ParsedUtterance
impl<'de> Deserialize<'de> for ParsedUtterance
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
Source§impl PartialEq for ParsedUtterance
impl PartialEq for ParsedUtterance
Source§impl Serialize for ParsedUtterance
impl Serialize for ParsedUtterance
impl StructuralPartialEq for ParsedUtterance
Auto Trait Implementations§
impl Freeze for ParsedUtterance
impl RefUnwindSafe for ParsedUtterance
impl Send for ParsedUtterance
impl Sync for ParsedUtterance
impl Unpin for ParsedUtterance
impl UnsafeUnpin for ParsedUtterance
impl UnwindSafe for ParsedUtterance
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