#[non_exhaustive]pub struct InputTextConfig {
pub language_code: String,
/* private fields */
}Available on crate feature
participants only.Expand description
Defines the language used in the input text.
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.language_code: StringRequired. The language of this conversational query. See Language Support for a list of the currently supported language codes.
Implementations§
Source§impl InputTextConfig
impl InputTextConfig
pub fn new() -> Self
Sourcepub fn set_language_code<T: Into<String>>(self, v: T) -> Self
pub fn set_language_code<T: Into<String>>(self, v: T) -> Self
Sets the value of language_code.
§Example
ⓘ
let x = InputTextConfig::new().set_language_code("example");Trait Implementations§
Source§impl Clone for InputTextConfig
impl Clone for InputTextConfig
Source§fn clone(&self) -> InputTextConfig
fn clone(&self) -> InputTextConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 InputTextConfig
impl Debug for InputTextConfig
Source§impl Default for InputTextConfig
impl Default for InputTextConfig
Source§fn default() -> InputTextConfig
fn default() -> InputTextConfig
Returns the “default value” for a type. Read more
Source§impl Message for InputTextConfig
impl Message for InputTextConfig
Source§impl PartialEq for InputTextConfig
impl PartialEq for InputTextConfig
impl StructuralPartialEq for InputTextConfig
Auto Trait Implementations§
impl Freeze for InputTextConfig
impl RefUnwindSafe for InputTextConfig
impl Send for InputTextConfig
impl Sync for InputTextConfig
impl Unpin for InputTextConfig
impl UnwindSafe for InputTextConfig
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