#[non_exhaustive]pub struct CreateRagCorpusRequest {
pub parent: String,
pub rag_corpus: Option<RagCorpus>,
/* private fields */
}Available on crate feature
vertex-rag-data-service only.Expand description
Request message for VertexRagDataService.CreateRagCorpus.
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.parent: StringRequired. The resource name of the Location to create the RagCorpus in.
Format: projects/{project}/locations/{location}
rag_corpus: Option<RagCorpus>Required. The RagCorpus to create.
Implementations§
Source§impl CreateRagCorpusRequest
impl CreateRagCorpusRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> 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 = CreateRagCorpusRequest::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 = CreateRagCorpusRequest::new().set_or_clear_rag_corpus(Some(RagCorpus::default()/* use setters */));
let x = CreateRagCorpusRequest::new().set_or_clear_rag_corpus(None::<RagCorpus>);Trait Implementations§
Source§impl Clone for CreateRagCorpusRequest
impl Clone for CreateRagCorpusRequest
Source§fn clone(&self) -> CreateRagCorpusRequest
fn clone(&self) -> CreateRagCorpusRequest
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 CreateRagCorpusRequest
impl Debug for CreateRagCorpusRequest
Source§impl Default for CreateRagCorpusRequest
impl Default for CreateRagCorpusRequest
Source§fn default() -> CreateRagCorpusRequest
fn default() -> CreateRagCorpusRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateRagCorpusRequest
impl Message for CreateRagCorpusRequest
Source§impl PartialEq for CreateRagCorpusRequest
impl PartialEq for CreateRagCorpusRequest
impl StructuralPartialEq for CreateRagCorpusRequest
Auto Trait Implementations§
impl Freeze for CreateRagCorpusRequest
impl RefUnwindSafe for CreateRagCorpusRequest
impl Send for CreateRagCorpusRequest
impl Sync for CreateRagCorpusRequest
impl Unpin for CreateRagCorpusRequest
impl UnwindSafe for CreateRagCorpusRequest
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