#[non_exhaustive]pub struct AskContextsResponse {
pub response: String,
pub contexts: Option<RagContexts>,
/* private fields */
}Available on crate feature
vertex-rag-service only.Expand description
Response message for VertexRagService.AskContexts.
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.response: StringThe Retrieval Response.
contexts: Option<RagContexts>The contexts of the query.
Implementations§
Source§impl AskContextsResponse
impl AskContextsResponse
pub fn new() -> Self
Sourcepub fn set_response<T: Into<String>>(self, v: T) -> Self
pub fn set_response<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_contexts<T>(self, v: T) -> Selfwhere
T: Into<RagContexts>,
pub fn set_contexts<T>(self, v: T) -> Selfwhere
T: Into<RagContexts>,
Sourcepub fn set_or_clear_contexts<T>(self, v: Option<T>) -> Selfwhere
T: Into<RagContexts>,
pub fn set_or_clear_contexts<T>(self, v: Option<T>) -> Selfwhere
T: Into<RagContexts>,
Trait Implementations§
Source§impl Clone for AskContextsResponse
impl Clone for AskContextsResponse
Source§fn clone(&self) -> AskContextsResponse
fn clone(&self) -> AskContextsResponse
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 AskContextsResponse
impl Debug for AskContextsResponse
Source§impl Default for AskContextsResponse
impl Default for AskContextsResponse
Source§fn default() -> AskContextsResponse
fn default() -> AskContextsResponse
Returns the “default value” for a type. Read more
Source§impl Message for AskContextsResponse
impl Message for AskContextsResponse
Source§impl PartialEq for AskContextsResponse
impl PartialEq for AskContextsResponse
impl StructuralPartialEq for AskContextsResponse
Auto Trait Implementations§
impl Freeze for AskContextsResponse
impl RefUnwindSafe for AskContextsResponse
impl Send for AskContextsResponse
impl Sync for AskContextsResponse
impl Unpin for AskContextsResponse
impl UnsafeUnpin for AskContextsResponse
impl UnwindSafe for AskContextsResponse
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