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