#[non_exhaustive]pub struct TextInput {
pub text: String,
pub language_code: String,
/* private fields */
}Available on crate features
conversations or participants or sessions only.Expand description
Auxiliary proto messages.
Represents the natural language text to be processed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.text: StringRequired. The UTF-8 encoded natural language text to be processed. Text length must not exceed 256 characters for virtual agent interactions.
language_code: StringRequired. The language of this conversational query. See Language Support for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language.
Implementations§
Trait Implementations§
impl StructuralPartialEq for TextInput
Auto Trait Implementations§
impl Freeze for TextInput
impl RefUnwindSafe for TextInput
impl Send for TextInput
impl Sync for TextInput
impl Unpin for TextInput
impl UnwindSafe for TextInput
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