#[non_exhaustive]pub struct ConversationInfo {
pub language_code: String,
/* private fields */
}Available on crate feature
conversation-datasets only.Expand description
Represents metadata of a conversation.
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: StringOptional. The language code of the conversation data within this dataset. See https://cloud.google.com/apis/design/standard_fields for more information. Supports all UTF-8 languages.
Implementations§
Source§impl ConversationInfo
impl ConversationInfo
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 = ConversationInfo::new().set_language_code("example");Trait Implementations§
Source§impl Clone for ConversationInfo
impl Clone for ConversationInfo
Source§fn clone(&self) -> ConversationInfo
fn clone(&self) -> ConversationInfo
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 ConversationInfo
impl Debug for ConversationInfo
Source§impl Default for ConversationInfo
impl Default for ConversationInfo
Source§fn default() -> ConversationInfo
fn default() -> ConversationInfo
Returns the “default value” for a type. Read more
Source§impl Message for ConversationInfo
impl Message for ConversationInfo
Source§impl PartialEq for ConversationInfo
impl PartialEq for ConversationInfo
impl StructuralPartialEq for ConversationInfo
Auto Trait Implementations§
impl Freeze for ConversationInfo
impl RefUnwindSafe for ConversationInfo
impl Send for ConversationInfo
impl Sync for ConversationInfo
impl Unpin for ConversationInfo
impl UnsafeUnpin for ConversationInfo
impl UnwindSafe for ConversationInfo
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