#[non_exhaustive]pub struct EndUserSpec {
pub end_user_metadata: Vec<EndUserMetaData>,
/* private fields */
}Available on crate feature
conversational-search-service only.Expand description
End user specification.
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.end_user_metadata: Vec<EndUserMetaData>Optional. End user metadata.
Implementations§
Source§impl EndUserSpec
impl EndUserSpec
pub fn new() -> Self
Sourcepub fn set_end_user_metadata<T, V>(self, v: T) -> Self
pub fn set_end_user_metadata<T, V>(self, v: T) -> Self
Sets the value of end_user_metadata.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::answer_query_request::end_user_spec::EndUserMetaData;
let x = EndUserSpec::new()
.set_end_user_metadata([
EndUserMetaData::default()/* use setters */,
EndUserMetaData::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for EndUserSpec
impl Clone for EndUserSpec
Source§fn clone(&self) -> EndUserSpec
fn clone(&self) -> EndUserSpec
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 EndUserSpec
impl Debug for EndUserSpec
Source§impl Default for EndUserSpec
impl Default for EndUserSpec
Source§fn default() -> EndUserSpec
fn default() -> EndUserSpec
Returns the “default value” for a type. Read more
Source§impl Message for EndUserSpec
impl Message for EndUserSpec
Source§impl PartialEq for EndUserSpec
impl PartialEq for EndUserSpec
impl StructuralPartialEq for EndUserSpec
Auto Trait Implementations§
impl Freeze for EndUserSpec
impl RefUnwindSafe for EndUserSpec
impl Send for EndUserSpec
impl Sync for EndUserSpec
impl Unpin for EndUserSpec
impl UnwindSafe for EndUserSpec
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