Enum google_api_proto::google::cloud::dialogflow::v2::human_agent_assistant_config::suggestion_query_config::sections::SectionType
source · #[repr(i32)]pub enum SectionType {
Unspecified = 0,
Situation = 1,
Action = 2,
Resolution = 3,
ReasonForCancellation = 4,
CustomerSatisfaction = 5,
Entities = 6,
}
Expand description
Selectable sections to return when requesting a summary of a conversation.
Variants§
Unspecified = 0
Undefined section type, does not return anything.
Situation = 1
What the customer needs help with or has question about. Section name: “situation”.
Action = 2
What the agent does to help the customer. Section name: “action”.
Resolution = 3
Result of the customer service. A single word describing the result of the conversation. Section name: “resolution”.
ReasonForCancellation = 4
Reason for cancellation if the customer requests for a cancellation. “N/A” otherwise. Section name: “reason_for_cancellation”.
CustomerSatisfaction = 5
“Unsatisfied” or “Satisfied” depending on the customer’s feelings at the end of the conversation. Section name: “customer_satisfaction”.
Entities = 6
Key entities extracted from the conversation, such as ticket number, order number, dollar amount, etc. Section names are prefixed by “entities/”.
Implementations§
source§impl SectionType
impl SectionType
source§impl SectionType
impl SectionType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for SectionType
impl Clone for SectionType
source§fn clone(&self) -> SectionType
fn clone(&self) -> SectionType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SectionType
impl Debug for SectionType
source§impl Default for SectionType
impl Default for SectionType
source§fn default() -> SectionType
fn default() -> SectionType
source§impl From<SectionType> for i32
impl From<SectionType> for i32
source§fn from(value: SectionType) -> i32
fn from(value: SectionType) -> i32
source§impl Hash for SectionType
impl Hash for SectionType
source§impl Ord for SectionType
impl Ord for SectionType
source§fn cmp(&self, other: &SectionType) -> Ordering
fn cmp(&self, other: &SectionType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for SectionType
impl PartialEq for SectionType
source§fn eq(&self, other: &SectionType) -> bool
fn eq(&self, other: &SectionType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SectionType
impl PartialOrd for SectionType
source§fn partial_cmp(&self, other: &SectionType) -> Option<Ordering>
fn partial_cmp(&self, other: &SectionType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for SectionType
impl TryFrom<i32> for SectionType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<SectionType, DecodeError>
fn try_from(value: i32) -> Result<SectionType, DecodeError>
impl Copy for SectionType
impl Eq for SectionType
impl StructuralPartialEq for SectionType
Auto Trait Implementations§
impl Freeze for SectionType
impl RefUnwindSafe for SectionType
impl Send for SectionType
impl Sync for SectionType
impl Unpin for SectionType
impl UnwindSafe for SectionType
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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