#[non_exhaustive]pub struct UpdateRagCorpusRequest {
pub rag_corpus: Option<RagCorpus>,
/* private fields */
}Available on crate feature
vertex-rag-data-service only.Expand description
Request message for VertexRagDataService.UpdateRagCorpus.
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.rag_corpus: Option<RagCorpus>Required. The RagCorpus which replaces the resource on the server.
Implementations§
Source§impl UpdateRagCorpusRequest
impl UpdateRagCorpusRequest
pub fn new() -> Self
Sourcepub fn set_rag_corpus<T>(self, v: T) -> Self
pub fn set_rag_corpus<T>(self, v: T) -> Self
Sets the value of rag_corpus.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::RagCorpus;
let x = UpdateRagCorpusRequest::new().set_rag_corpus(RagCorpus::default()/* use setters */);Sourcepub fn set_or_clear_rag_corpus<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_rag_corpus<T>(self, v: Option<T>) -> Self
Sets or clears the value of rag_corpus.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::RagCorpus;
let x = UpdateRagCorpusRequest::new().set_or_clear_rag_corpus(Some(RagCorpus::default()/* use setters */));
let x = UpdateRagCorpusRequest::new().set_or_clear_rag_corpus(None::<RagCorpus>);Trait Implementations§
Source§impl Clone for UpdateRagCorpusRequest
impl Clone for UpdateRagCorpusRequest
Source§fn clone(&self) -> UpdateRagCorpusRequest
fn clone(&self) -> UpdateRagCorpusRequest
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 UpdateRagCorpusRequest
impl Debug for UpdateRagCorpusRequest
Source§impl Default for UpdateRagCorpusRequest
impl Default for UpdateRagCorpusRequest
Source§fn default() -> UpdateRagCorpusRequest
fn default() -> UpdateRagCorpusRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateRagCorpusRequest
impl Message for UpdateRagCorpusRequest
Source§impl PartialEq for UpdateRagCorpusRequest
impl PartialEq for UpdateRagCorpusRequest
impl StructuralPartialEq for UpdateRagCorpusRequest
Auto Trait Implementations§
impl Freeze for UpdateRagCorpusRequest
impl RefUnwindSafe for UpdateRagCorpusRequest
impl Send for UpdateRagCorpusRequest
impl Sync for UpdateRagCorpusRequest
impl Unpin for UpdateRagCorpusRequest
impl UnwindSafe for UpdateRagCorpusRequest
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