#[non_exhaustive]pub struct Reply {
pub reply: Option<Reply>,
/* private fields */
}Available on crate features
assistant-service or conversational-search-service or session-service only.Expand description
One part of the multi-part response of the assist 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.reply: Option<Reply>Alternatives for the assistant reply.
Implementations§
Source§impl Reply
impl Reply
pub fn new() -> Self
Sourcepub fn set_reply<T: Into<Option<Reply>>>(self, v: T) -> Self
pub fn set_reply<T: Into<Option<Reply>>>(self, v: T) -> Self
Sets the value of reply.
Note that all the setters affecting reply are mutually
exclusive.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::AssistantGroundedContent;
let x = Reply::new().set_reply(Some(
google_cloud_discoveryengine_v1::model::assist_answer::reply::Reply::GroundedContent(AssistantGroundedContent::default().into())));Sourcepub fn grounded_content(&self) -> Option<&Box<AssistantGroundedContent>>
pub fn grounded_content(&self) -> Option<&Box<AssistantGroundedContent>>
The value of reply
if it holds a GroundedContent, None if the field is not set or
holds a different branch.
Sourcepub fn set_grounded_content<T: Into<Box<AssistantGroundedContent>>>(
self,
v: T,
) -> Self
pub fn set_grounded_content<T: Into<Box<AssistantGroundedContent>>>( self, v: T, ) -> Self
Sets the value of reply
to hold a GroundedContent.
Note that all the setters affecting reply are
mutually exclusive.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::AssistantGroundedContent;
let x = Reply::new().set_grounded_content(AssistantGroundedContent::default()/* use setters */);
assert!(x.grounded_content().is_some());Trait Implementations§
impl StructuralPartialEq for Reply
Auto Trait Implementations§
impl Freeze for Reply
impl RefUnwindSafe for Reply
impl Send for Reply
impl Sync for Reply
impl Unpin for Reply
impl UnwindSafe for Reply
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