Struct google_api_proto::google::cloud::dialogflow::v2::Fulfillment
source · pub struct Fulfillment {
pub name: String,
pub display_name: String,
pub enabled: bool,
pub features: Vec<Feature>,
pub fulfillment: Option<Fulfillment>,
}
Expand description
By default, your agent responds to a matched intent with a static response. As an alternative, you can provide a more dynamic response by using fulfillment. When you enable fulfillment for an intent, Dialogflow responds to that intent by calling a service that you define. For example, if an end-user wants to schedule a haircut on Friday, your service can check your database and respond to the end-user with availability information for Friday.
For more information, see the fulfillment guide.
Fields§
§name: String
Required. The unique identifier of the fulfillment. Supported formats:
projects/<Project ID>/agent/fulfillment
projects/<Project ID>/locations/<Location ID>/agent/fulfillment
This field is not used for Fulfillment in an Environment.
display_name: String
Optional. The human-readable name of the fulfillment, unique within the agent.
This field is not used for Fulfillment in an Environment.
enabled: bool
Optional. Whether fulfillment is enabled.
features: Vec<Feature>
Optional. The field defines whether the fulfillment is enabled for certain features.
fulfillment: Option<Fulfillment>
Required. The fulfillment configuration.
Trait Implementations§
source§impl Clone for Fulfillment
impl Clone for Fulfillment
source§fn clone(&self) -> Fulfillment
fn clone(&self) -> Fulfillment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Fulfillment
impl Debug for Fulfillment
source§impl Default for Fulfillment
impl Default for Fulfillment
source§impl Message for Fulfillment
impl Message for Fulfillment
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Fulfillment
impl PartialEq for Fulfillment
source§fn eq(&self, other: &Fulfillment) -> bool
fn eq(&self, other: &Fulfillment) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Fulfillment
Auto Trait Implementations§
impl Freeze for Fulfillment
impl RefUnwindSafe for Fulfillment
impl Send for Fulfillment
impl Sync for Fulfillment
impl Unpin for Fulfillment
impl UnwindSafe for Fulfillment
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<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