#[non_exhaustive]pub struct AsyncRetrieveContextsResponse {
pub contexts: Option<RagContexts>,
/* private fields */
}Available on crate feature
vertex-rag-service only.Expand description
Response message for VertexRagService.AsyncRetrieveContexts.
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 AsyncRetrieveContextsResponse
impl AsyncRetrieveContextsResponse
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>,
Sets or clears the value of contexts.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::RagContexts;
let x = AsyncRetrieveContextsResponse::new().set_or_clear_contexts(Some(RagContexts::default()/* use setters */));
let x = AsyncRetrieveContextsResponse::new().set_or_clear_contexts(None::<RagContexts>);Trait Implementations§
Source§impl Clone for AsyncRetrieveContextsResponse
impl Clone for AsyncRetrieveContextsResponse
Source§fn clone(&self) -> AsyncRetrieveContextsResponse
fn clone(&self) -> AsyncRetrieveContextsResponse
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 Default for AsyncRetrieveContextsResponse
impl Default for AsyncRetrieveContextsResponse
Source§fn default() -> AsyncRetrieveContextsResponse
fn default() -> AsyncRetrieveContextsResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for AsyncRetrieveContextsResponse
impl PartialEq for AsyncRetrieveContextsResponse
Source§fn eq(&self, other: &AsyncRetrieveContextsResponse) -> bool
fn eq(&self, other: &AsyncRetrieveContextsResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AsyncRetrieveContextsResponse
Auto Trait Implementations§
impl Freeze for AsyncRetrieveContextsResponse
impl RefUnwindSafe for AsyncRetrieveContextsResponse
impl Send for AsyncRetrieveContextsResponse
impl Sync for AsyncRetrieveContextsResponse
impl Unpin for AsyncRetrieveContextsResponse
impl UnsafeUnpin for AsyncRetrieveContextsResponse
impl UnwindSafe for AsyncRetrieveContextsResponse
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