#[non_exhaustive]pub struct HumanAgentHandoffConfig {
pub agent_service: Option<AgentService>,
/* private fields */
}conversation-profiles or conversations only.Expand description
Defines the hand off to a live agent, typically on which external agent service provider to connect to a conversation.
Currently, this feature is not general available, please contact Google to get access.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.agent_service: Option<AgentService>Required. Specifies which agent service to connect for human agent handoff.
Implementations§
Source§impl HumanAgentHandoffConfig
impl HumanAgentHandoffConfig
Sourcepub fn set_agent_service<T: Into<Option<AgentService>>>(self, v: T) -> Self
pub fn set_agent_service<T: Into<Option<AgentService>>>(self, v: T) -> Self
Sets the value of agent_service.
Note that all the setters affecting agent_service are mutually
exclusive.
§Example
use google_cloud_dialogflow_v2::model::human_agent_handoff_config::LivePersonConfig;
let x = HumanAgentHandoffConfig::new().set_agent_service(Some(
google_cloud_dialogflow_v2::model::human_agent_handoff_config::AgentService::LivePersonConfig(LivePersonConfig::default().into())));Sourcepub fn live_person_config(&self) -> Option<&Box<LivePersonConfig>>
pub fn live_person_config(&self) -> Option<&Box<LivePersonConfig>>
The value of agent_service
if it holds a LivePersonConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_live_person_config<T: Into<Box<LivePersonConfig>>>(
self,
v: T,
) -> Self
pub fn set_live_person_config<T: Into<Box<LivePersonConfig>>>( self, v: T, ) -> Self
Sets the value of agent_service
to hold a LivePersonConfig.
Note that all the setters affecting agent_service are
mutually exclusive.
§Example
use google_cloud_dialogflow_v2::model::human_agent_handoff_config::LivePersonConfig;
let x = HumanAgentHandoffConfig::new().set_live_person_config(LivePersonConfig::default()/* use setters */);
assert!(x.live_person_config().is_some());
assert!(x.salesforce_live_agent_config().is_none());Sourcepub fn salesforce_live_agent_config(
&self,
) -> Option<&Box<SalesforceLiveAgentConfig>>
pub fn salesforce_live_agent_config( &self, ) -> Option<&Box<SalesforceLiveAgentConfig>>
The value of agent_service
if it holds a SalesforceLiveAgentConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_salesforce_live_agent_config<T: Into<Box<SalesforceLiveAgentConfig>>>(
self,
v: T,
) -> Self
pub fn set_salesforce_live_agent_config<T: Into<Box<SalesforceLiveAgentConfig>>>( self, v: T, ) -> Self
Sets the value of agent_service
to hold a SalesforceLiveAgentConfig.
Note that all the setters affecting agent_service are
mutually exclusive.
§Example
use google_cloud_dialogflow_v2::model::human_agent_handoff_config::SalesforceLiveAgentConfig;
let x = HumanAgentHandoffConfig::new().set_salesforce_live_agent_config(SalesforceLiveAgentConfig::default()/* use setters */);
assert!(x.salesforce_live_agent_config().is_some());
assert!(x.live_person_config().is_none());Trait Implementations§
Source§impl Clone for HumanAgentHandoffConfig
impl Clone for HumanAgentHandoffConfig
Source§fn clone(&self) -> HumanAgentHandoffConfig
fn clone(&self) -> HumanAgentHandoffConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HumanAgentHandoffConfig
impl Debug for HumanAgentHandoffConfig
Source§impl Default for HumanAgentHandoffConfig
impl Default for HumanAgentHandoffConfig
Source§fn default() -> HumanAgentHandoffConfig
fn default() -> HumanAgentHandoffConfig
Source§impl Message for HumanAgentHandoffConfig
impl Message for HumanAgentHandoffConfig
Source§impl PartialEq for HumanAgentHandoffConfig
impl PartialEq for HumanAgentHandoffConfig
impl StructuralPartialEq for HumanAgentHandoffConfig
Auto Trait Implementations§
impl Freeze for HumanAgentHandoffConfig
impl RefUnwindSafe for HumanAgentHandoffConfig
impl Send for HumanAgentHandoffConfig
impl Sync for HumanAgentHandoffConfig
impl Unpin for HumanAgentHandoffConfig
impl UnsafeUnpin for HumanAgentHandoffConfig
impl UnwindSafe for HumanAgentHandoffConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request