#[non_exhaustive]pub struct AssistAnswer {
pub name: String,
pub state: State,
pub replies: Vec<Reply>,
pub assist_skipped_reasons: Vec<AssistSkippedReason>,
/* private fields */
}Available on crate features
assistant-service or conversational-search-service or session-service only.Expand description
AssistAnswer resource, main part of [AssistResponse][google.cloud.discoveryengine.v1.AssistResponse].
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.name: StringImmutable. Resource name of the AssistAnswer.
Format:
projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}
This field must be a UTF-8 encoded string with a length limit of 1024 characters.
state: StateState of the answer generation.
replies: Vec<Reply>Replies of the assistant.
assist_skipped_reasons: Vec<AssistSkippedReason>Reasons for not answering the assist call.
Implementations§
Source§impl AssistAnswer
impl AssistAnswer
pub fn new() -> Self
Sourcepub fn set_replies<T, V>(self, v: T) -> Self
pub fn set_replies<T, V>(self, v: T) -> Self
Sourcepub fn set_assist_skipped_reasons<T, V>(self, v: T) -> Self
pub fn set_assist_skipped_reasons<T, V>(self, v: T) -> Self
Sets the value of assist_skipped_reasons.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::assist_answer::AssistSkippedReason;
let x = AssistAnswer::new().set_assist_skipped_reasons([
AssistSkippedReason::NonAssistSeekingQueryIgnored,
AssistSkippedReason::CustomerPolicyViolation,
]);Trait Implementations§
Source§impl Clone for AssistAnswer
impl Clone for AssistAnswer
Source§fn clone(&self) -> AssistAnswer
fn clone(&self) -> AssistAnswer
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 AssistAnswer
impl Debug for AssistAnswer
Source§impl Default for AssistAnswer
impl Default for AssistAnswer
Source§fn default() -> AssistAnswer
fn default() -> AssistAnswer
Returns the “default value” for a type. Read more
Source§impl Message for AssistAnswer
impl Message for AssistAnswer
Source§impl PartialEq for AssistAnswer
impl PartialEq for AssistAnswer
impl StructuralPartialEq for AssistAnswer
Auto Trait Implementations§
impl Freeze for AssistAnswer
impl RefUnwindSafe for AssistAnswer
impl Send for AssistAnswer
impl Sync for AssistAnswer
impl Unpin for AssistAnswer
impl UnwindSafe for AssistAnswer
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