#[non_exhaustive]pub struct OriginalDetectIntentRequest {
pub source: String,
pub version: String,
pub payload: Option<Struct>,
/* private fields */
}Available on crate features
agents and answer-records and contexts and conversation-datasets and conversation-models and conversation-profiles and conversations and documents and encryption-spec-service and entity-types and environments and fulfillments and generators and intents and knowledge-bases and participants and session-entity-types and sessions and versions only.Expand description
Represents the contents of the original request that was passed to
the [Streaming]DetectIntent call.
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.source: StringThe source of this request, e.g., google, facebook, slack. It is set
by Dialogflow-owned servers.
version: StringOptional. The version of the protocol used for this request. This field is AoG-specific.
payload: Option<Struct>Optional. This field is set to the value of the QueryParameters.payload
field passed in the request. Some integrations that query a Dialogflow
agent may provide additional information in the payload.
In particular, for the Dialogflow Phone Gateway integration, this field has the form:
Note: The caller ID field (caller_id) will be redacted for Trial
Edition agents and populated with the caller ID in E.164
format for Essentials Edition agents.
Implementations§
Source§impl OriginalDetectIntentRequest
impl OriginalDetectIntentRequest
pub fn new() -> Self
Sourcepub fn set_source<T: Into<String>>(self, v: T) -> Self
pub fn set_source<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_version<T: Into<String>>(self, v: T) -> Self
pub fn set_version<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_payload<T>(self, v: T) -> Self
pub fn set_payload<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_payload<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_payload<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for OriginalDetectIntentRequest
impl Clone for OriginalDetectIntentRequest
Source§fn clone(&self) -> OriginalDetectIntentRequest
fn clone(&self) -> OriginalDetectIntentRequest
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 OriginalDetectIntentRequest
impl Debug for OriginalDetectIntentRequest
Source§impl Default for OriginalDetectIntentRequest
impl Default for OriginalDetectIntentRequest
Source§fn default() -> OriginalDetectIntentRequest
fn default() -> OriginalDetectIntentRequest
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OriginalDetectIntentRequest
Auto Trait Implementations§
impl Freeze for OriginalDetectIntentRequest
impl RefUnwindSafe for OriginalDetectIntentRequest
impl Send for OriginalDetectIntentRequest
impl Sync for OriginalDetectIntentRequest
impl Unpin for OriginalDetectIntentRequest
impl UnwindSafe for OriginalDetectIntentRequest
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