#[non_exhaustive]pub struct EndUserMetaData {
pub content: Option<Content>,
/* private fields */
}Available on crate feature
conversational-search-service only.Expand description
End user metadata.
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.content: Option<Content>Search result content.
Implementations§
Source§impl EndUserMetaData
impl EndUserMetaData
pub fn new() -> Self
Sourcepub fn set_content<T: Into<Option<Content>>>(self, v: T) -> Self
pub fn set_content<T: Into<Option<Content>>>(self, v: T) -> Self
Sets the value of content.
Note that all the setters affecting content are mutually
exclusive.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::answer_query_request::end_user_spec::end_user_meta_data::ChunkInfo;
let x = EndUserMetaData::new().set_content(Some(
google_cloud_discoveryengine_v1::model::answer_query_request::end_user_spec::end_user_meta_data::Content::ChunkInfo(ChunkInfo::default().into())));Sourcepub fn chunk_info(&self) -> Option<&Box<ChunkInfo>>
pub fn chunk_info(&self) -> Option<&Box<ChunkInfo>>
The value of content
if it holds a ChunkInfo, None if the field is not set or
holds a different branch.
Sourcepub fn set_chunk_info<T: Into<Box<ChunkInfo>>>(self, v: T) -> Self
pub fn set_chunk_info<T: Into<Box<ChunkInfo>>>(self, v: T) -> Self
Sets the value of content
to hold a ChunkInfo.
Note that all the setters affecting content are
mutually exclusive.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::answer_query_request::end_user_spec::end_user_meta_data::ChunkInfo;
let x = EndUserMetaData::new().set_chunk_info(ChunkInfo::default()/* use setters */);
assert!(x.chunk_info().is_some());Trait Implementations§
Source§impl Clone for EndUserMetaData
impl Clone for EndUserMetaData
Source§fn clone(&self) -> EndUserMetaData
fn clone(&self) -> EndUserMetaData
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 EndUserMetaData
impl Debug for EndUserMetaData
Source§impl Default for EndUserMetaData
impl Default for EndUserMetaData
Source§fn default() -> EndUserMetaData
fn default() -> EndUserMetaData
Returns the “default value” for a type. Read more
Source§impl Message for EndUserMetaData
impl Message for EndUserMetaData
Source§impl PartialEq for EndUserMetaData
impl PartialEq for EndUserMetaData
impl StructuralPartialEq for EndUserMetaData
Auto Trait Implementations§
impl Freeze for EndUserMetaData
impl RefUnwindSafe for EndUserMetaData
impl Send for EndUserMetaData
impl Sync for EndUserMetaData
impl Unpin for EndUserMetaData
impl UnwindSafe for EndUserMetaData
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