#[non_exhaustive]pub struct SimpleResponses {
pub simple_responses: Vec<SimpleResponse>,
/* private fields */
}Available on crate features
answer-records or intents or participants or sessions only.Expand description
The collection of simple response candidates.
This message in QueryResult.fulfillment_messages and
WebhookResponse.fulfillment_messages should contain only one
SimpleResponse.
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.simple_responses: Vec<SimpleResponse>Required. The list of simple responses.
Implementations§
Source§impl SimpleResponses
impl SimpleResponses
pub fn new() -> Self
Sourcepub fn set_simple_responses<T, V>(self, v: T) -> Self
pub fn set_simple_responses<T, V>(self, v: T) -> Self
Sets the value of simple_responses.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::intent::message::SimpleResponse;
let x = SimpleResponses::new()
.set_simple_responses([
SimpleResponse::default()/* use setters */,
SimpleResponse::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for SimpleResponses
impl Clone for SimpleResponses
Source§fn clone(&self) -> SimpleResponses
fn clone(&self) -> SimpleResponses
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 SimpleResponses
impl Debug for SimpleResponses
Source§impl Default for SimpleResponses
impl Default for SimpleResponses
Source§fn default() -> SimpleResponses
fn default() -> SimpleResponses
Returns the “default value” for a type. Read more
Source§impl Message for SimpleResponses
impl Message for SimpleResponses
Source§impl PartialEq for SimpleResponses
impl PartialEq for SimpleResponses
impl StructuralPartialEq for SimpleResponses
Auto Trait Implementations§
impl Freeze for SimpleResponses
impl RefUnwindSafe for SimpleResponses
impl Send for SimpleResponses
impl Sync for SimpleResponses
impl Unpin for SimpleResponses
impl UnwindSafe for SimpleResponses
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