#[non_exhaustive]pub struct HumanAgentAssistantConfig {
pub notification_config: Option<NotificationConfig>,
pub human_agent_suggestion_config: Option<SuggestionConfig>,
pub end_user_suggestion_config: Option<SuggestionConfig>,
pub message_analysis_config: Option<MessageAnalysisConfig>,
/* private fields */
}Available on crate features
conversation-profiles or conversations only.Expand description
Defines the Human Agent Assist to connect to 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.notification_config: Option<NotificationConfig>Pub/Sub topic on which to publish new agent assistant events.
human_agent_suggestion_config: Option<SuggestionConfig>Configuration for agent assistance of human agent participant.
end_user_suggestion_config: Option<SuggestionConfig>Configuration for agent assistance of end user participant.
Currently, this feature is not general available, please contact Google to get access.
message_analysis_config: Option<MessageAnalysisConfig>Configuration for message analysis.
Implementations§
Source§impl HumanAgentAssistantConfig
impl HumanAgentAssistantConfig
pub fn new() -> Self
Sourcepub fn set_notification_config<T>(self, v: T) -> Selfwhere
T: Into<NotificationConfig>,
pub fn set_notification_config<T>(self, v: T) -> Selfwhere
T: Into<NotificationConfig>,
Sets the value of notification_config.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::NotificationConfig;
let x = HumanAgentAssistantConfig::new().set_notification_config(NotificationConfig::default()/* use setters */);Sourcepub fn set_or_clear_notification_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NotificationConfig>,
pub fn set_or_clear_notification_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NotificationConfig>,
Sets or clears the value of notification_config.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::NotificationConfig;
let x = HumanAgentAssistantConfig::new().set_or_clear_notification_config(Some(NotificationConfig::default()/* use setters */));
let x = HumanAgentAssistantConfig::new().set_or_clear_notification_config(None::<NotificationConfig>);Sourcepub fn set_human_agent_suggestion_config<T>(self, v: T) -> Selfwhere
T: Into<SuggestionConfig>,
pub fn set_human_agent_suggestion_config<T>(self, v: T) -> Selfwhere
T: Into<SuggestionConfig>,
Sets the value of human_agent_suggestion_config.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::human_agent_assistant_config::SuggestionConfig;
let x = HumanAgentAssistantConfig::new().set_human_agent_suggestion_config(SuggestionConfig::default()/* use setters */);Sourcepub fn set_or_clear_human_agent_suggestion_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<SuggestionConfig>,
pub fn set_or_clear_human_agent_suggestion_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<SuggestionConfig>,
Sets or clears the value of human_agent_suggestion_config.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::human_agent_assistant_config::SuggestionConfig;
let x = HumanAgentAssistantConfig::new().set_or_clear_human_agent_suggestion_config(Some(SuggestionConfig::default()/* use setters */));
let x = HumanAgentAssistantConfig::new().set_or_clear_human_agent_suggestion_config(None::<SuggestionConfig>);Sourcepub fn set_end_user_suggestion_config<T>(self, v: T) -> Selfwhere
T: Into<SuggestionConfig>,
pub fn set_end_user_suggestion_config<T>(self, v: T) -> Selfwhere
T: Into<SuggestionConfig>,
Sets the value of end_user_suggestion_config.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::human_agent_assistant_config::SuggestionConfig;
let x = HumanAgentAssistantConfig::new().set_end_user_suggestion_config(SuggestionConfig::default()/* use setters */);Sourcepub fn set_or_clear_end_user_suggestion_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<SuggestionConfig>,
pub fn set_or_clear_end_user_suggestion_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<SuggestionConfig>,
Sets or clears the value of end_user_suggestion_config.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::human_agent_assistant_config::SuggestionConfig;
let x = HumanAgentAssistantConfig::new().set_or_clear_end_user_suggestion_config(Some(SuggestionConfig::default()/* use setters */));
let x = HumanAgentAssistantConfig::new().set_or_clear_end_user_suggestion_config(None::<SuggestionConfig>);Sourcepub fn set_message_analysis_config<T>(self, v: T) -> Selfwhere
T: Into<MessageAnalysisConfig>,
pub fn set_message_analysis_config<T>(self, v: T) -> Selfwhere
T: Into<MessageAnalysisConfig>,
Sets the value of message_analysis_config.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::human_agent_assistant_config::MessageAnalysisConfig;
let x = HumanAgentAssistantConfig::new().set_message_analysis_config(MessageAnalysisConfig::default()/* use setters */);Sourcepub fn set_or_clear_message_analysis_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<MessageAnalysisConfig>,
pub fn set_or_clear_message_analysis_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<MessageAnalysisConfig>,
Sets or clears the value of message_analysis_config.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::human_agent_assistant_config::MessageAnalysisConfig;
let x = HumanAgentAssistantConfig::new().set_or_clear_message_analysis_config(Some(MessageAnalysisConfig::default()/* use setters */));
let x = HumanAgentAssistantConfig::new().set_or_clear_message_analysis_config(None::<MessageAnalysisConfig>);Trait Implementations§
Source§impl Clone for HumanAgentAssistantConfig
impl Clone for HumanAgentAssistantConfig
Source§fn clone(&self) -> HumanAgentAssistantConfig
fn clone(&self) -> HumanAgentAssistantConfig
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 HumanAgentAssistantConfig
impl Debug for HumanAgentAssistantConfig
Source§impl Default for HumanAgentAssistantConfig
impl Default for HumanAgentAssistantConfig
Source§fn default() -> HumanAgentAssistantConfig
fn default() -> HumanAgentAssistantConfig
Returns the “default value” for a type. Read more
Source§impl Message for HumanAgentAssistantConfig
impl Message for HumanAgentAssistantConfig
impl StructuralPartialEq for HumanAgentAssistantConfig
Auto Trait Implementations§
impl Freeze for HumanAgentAssistantConfig
impl RefUnwindSafe for HumanAgentAssistantConfig
impl Send for HumanAgentAssistantConfig
impl Sync for HumanAgentAssistantConfig
impl Unpin for HumanAgentAssistantConfig
impl UnwindSafe for HumanAgentAssistantConfig
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