#[non_exhaustive]pub struct AutomatedAgentReply {
pub detect_intent_response: Option<DetectIntentResponse>,
pub automated_agent_reply_type: AutomatedAgentReplyType,
pub allow_cancellation: bool,
pub cx_current_page: String,
/* private fields */
}Available on crate feature
participants only.Expand description
Represents a response from an automated agent.
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.detect_intent_response: Option<DetectIntentResponse>Response of the Dialogflow Sessions.DetectIntent call.
automated_agent_reply_type: AutomatedAgentReplyTypeAutomatedAgentReply type.
allow_cancellation: boolIndicates whether the partial automated agent reply is interruptible when a later reply message arrives. e.g. if the agent specified some music as partial response, it can be cancelled.
cx_current_page: StringThe unique identifier of the current Dialogflow CX conversation page.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>.
Implementations§
Source§impl AutomatedAgentReply
impl AutomatedAgentReply
pub fn new() -> Self
Sourcepub fn set_detect_intent_response<T>(self, v: T) -> Selfwhere
T: Into<DetectIntentResponse>,
pub fn set_detect_intent_response<T>(self, v: T) -> Selfwhere
T: Into<DetectIntentResponse>,
Sets the value of detect_intent_response.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::DetectIntentResponse;
let x = AutomatedAgentReply::new().set_detect_intent_response(DetectIntentResponse::default()/* use setters */);Sourcepub fn set_or_clear_detect_intent_response<T>(self, v: Option<T>) -> Selfwhere
T: Into<DetectIntentResponse>,
pub fn set_or_clear_detect_intent_response<T>(self, v: Option<T>) -> Selfwhere
T: Into<DetectIntentResponse>,
Sets or clears the value of detect_intent_response.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::DetectIntentResponse;
let x = AutomatedAgentReply::new().set_or_clear_detect_intent_response(Some(DetectIntentResponse::default()/* use setters */));
let x = AutomatedAgentReply::new().set_or_clear_detect_intent_response(None::<DetectIntentResponse>);Sourcepub fn set_automated_agent_reply_type<T: Into<AutomatedAgentReplyType>>(
self,
v: T,
) -> Self
pub fn set_automated_agent_reply_type<T: Into<AutomatedAgentReplyType>>( self, v: T, ) -> Self
Sets the value of automated_agent_reply_type.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::automated_agent_reply::AutomatedAgentReplyType;
let x0 = AutomatedAgentReply::new().set_automated_agent_reply_type(AutomatedAgentReplyType::Partial);
let x1 = AutomatedAgentReply::new().set_automated_agent_reply_type(AutomatedAgentReplyType::Final);Sourcepub fn set_allow_cancellation<T: Into<bool>>(self, v: T) -> Self
pub fn set_allow_cancellation<T: Into<bool>>(self, v: T) -> Self
Sets the value of allow_cancellation.
§Example
ⓘ
let x = AutomatedAgentReply::new().set_allow_cancellation(true);Sourcepub fn set_cx_current_page<T: Into<String>>(self, v: T) -> Self
pub fn set_cx_current_page<T: Into<String>>(self, v: T) -> Self
Sets the value of cx_current_page.
§Example
ⓘ
let x = AutomatedAgentReply::new().set_cx_current_page("example");Trait Implementations§
Source§impl Clone for AutomatedAgentReply
impl Clone for AutomatedAgentReply
Source§fn clone(&self) -> AutomatedAgentReply
fn clone(&self) -> AutomatedAgentReply
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 AutomatedAgentReply
impl Debug for AutomatedAgentReply
Source§impl Default for AutomatedAgentReply
impl Default for AutomatedAgentReply
Source§fn default() -> AutomatedAgentReply
fn default() -> AutomatedAgentReply
Returns the “default value” for a type. Read more
Source§impl Message for AutomatedAgentReply
impl Message for AutomatedAgentReply
Source§impl PartialEq for AutomatedAgentReply
impl PartialEq for AutomatedAgentReply
impl StructuralPartialEq for AutomatedAgentReply
Auto Trait Implementations§
impl !Freeze for AutomatedAgentReply
impl RefUnwindSafe for AutomatedAgentReply
impl Send for AutomatedAgentReply
impl Sync for AutomatedAgentReply
impl Unpin for AutomatedAgentReply
impl UnwindSafe for AutomatedAgentReply
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