#[non_exhaustive]pub struct AssistUserMetadata {
pub time_zone: String,
pub preferred_language_code: String,
/* private fields */
}Available on crate feature
assistant-service only.Expand description
User metadata of the request.
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.time_zone: StringOptional. IANA time zone, e.g. Europe/Budapest.
preferred_language_code: StringOptional. Preferred language to be used for answering if language detection fails. Also used as the language of error messages created by actions, regardless of language detection results.
Implementations§
Source§impl AssistUserMetadata
impl AssistUserMetadata
pub fn new() -> Self
Sourcepub fn set_time_zone<T: Into<String>>(self, v: T) -> Self
pub fn set_time_zone<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_preferred_language_code<T: Into<String>>(self, v: T) -> Self
pub fn set_preferred_language_code<T: Into<String>>(self, v: T) -> Self
Sets the value of preferred_language_code.
§Example
ⓘ
let x = AssistUserMetadata::new().set_preferred_language_code("example");Trait Implementations§
Source§impl Clone for AssistUserMetadata
impl Clone for AssistUserMetadata
Source§fn clone(&self) -> AssistUserMetadata
fn clone(&self) -> AssistUserMetadata
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 AssistUserMetadata
impl Debug for AssistUserMetadata
Source§impl Default for AssistUserMetadata
impl Default for AssistUserMetadata
Source§fn default() -> AssistUserMetadata
fn default() -> AssistUserMetadata
Returns the “default value” for a type. Read more
Source§impl Message for AssistUserMetadata
impl Message for AssistUserMetadata
Source§impl PartialEq for AssistUserMetadata
impl PartialEq for AssistUserMetadata
impl StructuralPartialEq for AssistUserMetadata
Auto Trait Implementations§
impl Freeze for AssistUserMetadata
impl RefUnwindSafe for AssistUserMetadata
impl Send for AssistUserMetadata
impl Sync for AssistUserMetadata
impl Unpin for AssistUserMetadata
impl UnwindSafe for AssistUserMetadata
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