#[non_exhaustive]pub struct AnswerFeedback {
pub correctness_level: CorrectnessLevel,
pub clicked: bool,
pub click_time: Option<Timestamp>,
pub displayed: bool,
pub display_time: Option<Timestamp>,
pub detail_feedback: Option<DetailFeedback>,
/* private fields */
}answer-records only.Expand description
Represents feedback the customer has about the quality & correctness of a certain answer in a conversation.
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.correctness_level: CorrectnessLevelThe correctness level of the specific answer.
clicked: boolIndicates whether the answer/item was clicked by the human agent or not. Default to false. For knowledge search and knowledge assist, the answer record is considered to be clicked if the answer was copied or any URI was clicked.
click_time: Option<Timestamp>Time when the answer/item was clicked.
displayed: boolIndicates whether the answer/item was displayed to the human agent in the agent desktop UI. Default to false.
display_time: Option<Timestamp>Time when the answer/item was displayed.
detail_feedback: Option<DetailFeedback>Normally, detail feedback is provided when answer is not fully correct.
Implementations§
Source§impl AnswerFeedback
impl AnswerFeedback
pub fn new() -> Self
Sourcepub fn set_correctness_level<T: Into<CorrectnessLevel>>(self, v: T) -> Self
pub fn set_correctness_level<T: Into<CorrectnessLevel>>(self, v: T) -> Self
Sets the value of correctness_level.
§Example
use google_cloud_dialogflow_v2::model::answer_feedback::CorrectnessLevel;
let x0 = AnswerFeedback::new().set_correctness_level(CorrectnessLevel::NotCorrect);
let x1 = AnswerFeedback::new().set_correctness_level(CorrectnessLevel::PartiallyCorrect);
let x2 = AnswerFeedback::new().set_correctness_level(CorrectnessLevel::FullyCorrect);Sourcepub fn set_clicked<T: Into<bool>>(self, v: T) -> Self
pub fn set_clicked<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_click_time<T>(self, v: T) -> Self
pub fn set_click_time<T>(self, v: T) -> Self
Sets the value of click_time.
§Example
use wkt::Timestamp;
let x = AnswerFeedback::new().set_click_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_click_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_click_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of click_time.
§Example
use wkt::Timestamp;
let x = AnswerFeedback::new().set_or_clear_click_time(Some(Timestamp::default()/* use setters */));
let x = AnswerFeedback::new().set_or_clear_click_time(None::<Timestamp>);Sourcepub fn set_displayed<T: Into<bool>>(self, v: T) -> Self
pub fn set_displayed<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_display_time<T>(self, v: T) -> Self
pub fn set_display_time<T>(self, v: T) -> Self
Sets the value of display_time.
§Example
use wkt::Timestamp;
let x = AnswerFeedback::new().set_display_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_display_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_display_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of display_time.
§Example
use wkt::Timestamp;
let x = AnswerFeedback::new().set_or_clear_display_time(Some(Timestamp::default()/* use setters */));
let x = AnswerFeedback::new().set_or_clear_display_time(None::<Timestamp>);Sourcepub fn set_detail_feedback<T: Into<Option<DetailFeedback>>>(self, v: T) -> Self
pub fn set_detail_feedback<T: Into<Option<DetailFeedback>>>(self, v: T) -> Self
Sets the value of detail_feedback.
Note that all the setters affecting detail_feedback are mutually
exclusive.
§Example
use google_cloud_dialogflow_v2::model::AgentAssistantFeedback;
let x = AnswerFeedback::new().set_detail_feedback(Some(
google_cloud_dialogflow_v2::model::answer_feedback::DetailFeedback::AgentAssistantDetailFeedback(AgentAssistantFeedback::default().into())));Sourcepub fn agent_assistant_detail_feedback(
&self,
) -> Option<&Box<AgentAssistantFeedback>>
pub fn agent_assistant_detail_feedback( &self, ) -> Option<&Box<AgentAssistantFeedback>>
The value of detail_feedback
if it holds a AgentAssistantDetailFeedback, None if the field is not set or
holds a different branch.
Sourcepub fn set_agent_assistant_detail_feedback<T: Into<Box<AgentAssistantFeedback>>>(
self,
v: T,
) -> Self
pub fn set_agent_assistant_detail_feedback<T: Into<Box<AgentAssistantFeedback>>>( self, v: T, ) -> Self
Sets the value of detail_feedback
to hold a AgentAssistantDetailFeedback.
Note that all the setters affecting detail_feedback are
mutually exclusive.
§Example
use google_cloud_dialogflow_v2::model::AgentAssistantFeedback;
let x = AnswerFeedback::new().set_agent_assistant_detail_feedback(AgentAssistantFeedback::default()/* use setters */);
assert!(x.agent_assistant_detail_feedback().is_some());Trait Implementations§
Source§impl Clone for AnswerFeedback
impl Clone for AnswerFeedback
Source§fn clone(&self) -> AnswerFeedback
fn clone(&self) -> AnswerFeedback
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more