pub struct GoogleCloudDialogflowCxV3WebhookGenericWebService {
pub allowed_ca_certs: Option<Vec<Vec<u8>>>,
pub http_method: Option<String>,
pub oauth_config: Option<GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig>,
pub parameter_mapping: Option<HashMap<String, String>>,
pub password: Option<String>,
pub request_body: Option<String>,
pub request_headers: Option<HashMap<String, String>>,
pub service_agent_auth: Option<String>,
pub uri: Option<String>,
pub username: Option<String>,
pub webhook_type: Option<String>,
}
Expand description
Represents configuration for a generic web service.
This type is not used in any activity, and only used as part of another schema.
Fields§
§allowed_ca_certs: Option<Vec<Vec<u8>>>
Optional. Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification. This overrides the default SSL trust store. If this is empty or unspecified, Dialogflow will use Google’s default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are signed with “subject alt name”. For instance a certificate can be self-signed using the following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
http_method: Option<String>
Optional. HTTP method for the flexible webhook calls. Standard webhook always uses POST.
oauth_config: Option<GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig>
Optional. The OAuth configuration of the webhook. If specified, Dialogflow will initiate the OAuth client credential flow to exchange an access token from the 3rd party platform and put it in the auth header.
parameter_mapping: Option<HashMap<String, String>>
Optional. Maps the values extracted from specific fields of the flexible webhook response into session parameters. - Key: session parameter name - Value: field path in the webhook response
password: Option<String>
The password for HTTP Basic authentication.
request_body: Option<String>
Optional. Defines a custom JSON object as request body to send to flexible webhook.
request_headers: Option<HashMap<String, String>>
The HTTP request headers to send together with webhook requests.
service_agent_auth: Option<String>
Optional. Indicate the auth token type generated from the Diglogflow service agent. The generated token is sent in the Authorization header.
uri: Option<String>
Required. The webhook URI for receiving POST requests. It must use https protocol.
username: Option<String>
The user name for HTTP Basic authentication.
webhook_type: Option<String>
Optional. Type of the webhook.
Trait Implementations§
Source§impl Clone for GoogleCloudDialogflowCxV3WebhookGenericWebService
impl Clone for GoogleCloudDialogflowCxV3WebhookGenericWebService
Source§fn clone(&self) -> GoogleCloudDialogflowCxV3WebhookGenericWebService
fn clone(&self) -> GoogleCloudDialogflowCxV3WebhookGenericWebService
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for GoogleCloudDialogflowCxV3WebhookGenericWebService
impl Default for GoogleCloudDialogflowCxV3WebhookGenericWebService
Source§fn default() -> GoogleCloudDialogflowCxV3WebhookGenericWebService
fn default() -> GoogleCloudDialogflowCxV3WebhookGenericWebService
Source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3WebhookGenericWebService
impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3WebhookGenericWebService
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for GoogleCloudDialogflowCxV3WebhookGenericWebService
Auto Trait Implementations§
impl Freeze for GoogleCloudDialogflowCxV3WebhookGenericWebService
impl RefUnwindSafe for GoogleCloudDialogflowCxV3WebhookGenericWebService
impl Send for GoogleCloudDialogflowCxV3WebhookGenericWebService
impl Sync for GoogleCloudDialogflowCxV3WebhookGenericWebService
impl Unpin for GoogleCloudDialogflowCxV3WebhookGenericWebService
impl UnwindSafe for GoogleCloudDialogflowCxV3WebhookGenericWebService
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more