#[non_exhaustive]pub struct SuggestionInput {
pub answer_record: String,
/* private fields */
}Available on crate feature
participants only.Expand description
Represents the selection of a suggestion.
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.answer_record: StringRequired. The ID of a suggestion selected by the human agent.
The suggestion(s) were generated in a previous call to
request Dialogflow assist.
The format is:
projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID> where <Answer Record ID> is an alphanumeric string.
Implementations§
Source§impl SuggestionInput
impl SuggestionInput
pub fn new() -> Self
Sourcepub fn set_answer_record<T: Into<String>>(self, v: T) -> Self
pub fn set_answer_record<T: Into<String>>(self, v: T) -> Self
Sets the value of answer_record.
§Example
ⓘ
let x = SuggestionInput::new().set_answer_record("example");Trait Implementations§
Source§impl Clone for SuggestionInput
impl Clone for SuggestionInput
Source§fn clone(&self) -> SuggestionInput
fn clone(&self) -> SuggestionInput
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 SuggestionInput
impl Debug for SuggestionInput
Source§impl Default for SuggestionInput
impl Default for SuggestionInput
Source§fn default() -> SuggestionInput
fn default() -> SuggestionInput
Returns the “default value” for a type. Read more
Source§impl Message for SuggestionInput
impl Message for SuggestionInput
Source§impl PartialEq for SuggestionInput
impl PartialEq for SuggestionInput
impl StructuralPartialEq for SuggestionInput
Auto Trait Implementations§
impl Freeze for SuggestionInput
impl RefUnwindSafe for SuggestionInput
impl Send for SuggestionInput
impl Sync for SuggestionInput
impl Unpin for SuggestionInput
impl UnwindSafe for SuggestionInput
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