#[non_exhaustive]pub struct HumanAgentAssistantEvent {
pub conversation: String,
pub participant: String,
pub suggestion_results: Vec<SuggestionResult>,
/* private fields */
}Available on crate features
agents and answer-records and contexts and conversation-datasets and conversation-models and conversation-profiles and conversations and documents and encryption-spec-service and entity-types and environments and fulfillments and generators and intents and knowledge-bases and participants and session-entity-types and sessions and versions only.Expand description
Represents a notification sent to Cloud Pub/Sub subscribers for human agent assistant events in a specific 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.conversation: StringThe conversation this notification refers to.
Format: projects/<Project ID>/conversations/<Conversation ID>.
participant: StringThe participant that the suggestion is compiled for.
Format: projects/<Project ID>/conversations/<Conversation ID>/participants/<Participant ID>. It will not be set in legacy workflow.
suggestion_results: Vec<SuggestionResult>The suggestion results payload that this notification refers to.
Implementations§
Source§impl HumanAgentAssistantEvent
impl HumanAgentAssistantEvent
pub fn new() -> Self
Sourcepub fn set_conversation<T: Into<String>>(self, v: T) -> Self
pub fn set_conversation<T: Into<String>>(self, v: T) -> Self
Sets the value of conversation.
§Example
ⓘ
let x = HumanAgentAssistantEvent::new().set_conversation("example");Sourcepub fn set_participant<T: Into<String>>(self, v: T) -> Self
pub fn set_participant<T: Into<String>>(self, v: T) -> Self
Sets the value of participant.
§Example
ⓘ
let x = HumanAgentAssistantEvent::new().set_participant("example");Sourcepub fn set_suggestion_results<T, V>(self, v: T) -> Self
pub fn set_suggestion_results<T, V>(self, v: T) -> Self
Sets the value of suggestion_results.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::SuggestionResult;
let x = HumanAgentAssistantEvent::new()
.set_suggestion_results([
SuggestionResult::default()/* use setters */,
SuggestionResult::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for HumanAgentAssistantEvent
impl Clone for HumanAgentAssistantEvent
Source§fn clone(&self) -> HumanAgentAssistantEvent
fn clone(&self) -> HumanAgentAssistantEvent
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 HumanAgentAssistantEvent
impl Debug for HumanAgentAssistantEvent
Source§impl Default for HumanAgentAssistantEvent
impl Default for HumanAgentAssistantEvent
Source§fn default() -> HumanAgentAssistantEvent
fn default() -> HumanAgentAssistantEvent
Returns the “default value” for a type. Read more
Source§impl Message for HumanAgentAssistantEvent
impl Message for HumanAgentAssistantEvent
Source§impl PartialEq for HumanAgentAssistantEvent
impl PartialEq for HumanAgentAssistantEvent
impl StructuralPartialEq for HumanAgentAssistantEvent
Auto Trait Implementations§
impl Freeze for HumanAgentAssistantEvent
impl RefUnwindSafe for HumanAgentAssistantEvent
impl Send for HumanAgentAssistantEvent
impl Sync for HumanAgentAssistantEvent
impl Unpin for HumanAgentAssistantEvent
impl UnwindSafe for HumanAgentAssistantEvent
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