#[non_exhaustive]pub struct IngestContextReferencesResponse {
pub ingested_context_references: HashMap<String, ContextReference>,
/* private fields */
}Available on crate feature
conversations only.Expand description
The response message for [ConversationsService.IngestContextReferences][].
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.ingested_context_references: HashMap<String, ContextReference>All context references ingested.
Implementations§
Source§impl IngestContextReferencesResponse
impl IngestContextReferencesResponse
pub fn new() -> Self
Sourcepub fn set_ingested_context_references<T, K, V>(self, v: T) -> Self
pub fn set_ingested_context_references<T, K, V>(self, v: T) -> Self
Sets the value of ingested_context_references.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::conversation::ContextReference;
let x = IngestContextReferencesResponse::new().set_ingested_context_references([
("key0", ContextReference::default()/* use setters */),
("key1", ContextReference::default()/* use (different) setters */),
]);Trait Implementations§
Source§impl Clone for IngestContextReferencesResponse
impl Clone for IngestContextReferencesResponse
Source§fn clone(&self) -> IngestContextReferencesResponse
fn clone(&self) -> IngestContextReferencesResponse
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 Default for IngestContextReferencesResponse
impl Default for IngestContextReferencesResponse
Source§fn default() -> IngestContextReferencesResponse
fn default() -> IngestContextReferencesResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for IngestContextReferencesResponse
impl PartialEq for IngestContextReferencesResponse
Source§fn eq(&self, other: &IngestContextReferencesResponse) -> bool
fn eq(&self, other: &IngestContextReferencesResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IngestContextReferencesResponse
Auto Trait Implementations§
impl Freeze for IngestContextReferencesResponse
impl RefUnwindSafe for IngestContextReferencesResponse
impl Send for IngestContextReferencesResponse
impl Sync for IngestContextReferencesResponse
impl Unpin for IngestContextReferencesResponse
impl UnwindSafe for IngestContextReferencesResponse
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