#[non_exhaustive]pub struct ImportDataObjectsRequest {
pub name: String,
pub config: Option<Config>,
/* private fields */
}Expand description
Request message for VectorSearchService.ImportDataObjects.
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.name: StringRequired. The resource name of the Collection to import DataObjects into.
Format: projects/{project}/locations/{location}/collections/{collection}.
config: Option<Config>The configuration for the import data and error results.
Implementations§
Source§impl ImportDataObjectsRequest
impl ImportDataObjectsRequest
pub fn new() -> Self
Sourcepub fn set_config<T: Into<Option<Config>>>(self, v: T) -> Self
pub fn set_config<T: Into<Option<Config>>>(self, v: T) -> Self
Sets the value of config.
Note that all the setters affecting config are mutually
exclusive.
§Example
ⓘ
use google_cloud_vectorsearch_v1::model::import_data_objects_request::GcsImportConfig;
let x = ImportDataObjectsRequest::new().set_config(Some(
google_cloud_vectorsearch_v1::model::import_data_objects_request::Config::GcsImport(GcsImportConfig::default().into())));Sourcepub fn gcs_import(&self) -> Option<&Box<GcsImportConfig>>
pub fn gcs_import(&self) -> Option<&Box<GcsImportConfig>>
The value of config
if it holds a GcsImport, None if the field is not set or
holds a different branch.
Sourcepub fn set_gcs_import<T: Into<Box<GcsImportConfig>>>(self, v: T) -> Self
pub fn set_gcs_import<T: Into<Box<GcsImportConfig>>>(self, v: T) -> Self
Sets the value of config
to hold a GcsImport.
Note that all the setters affecting config are
mutually exclusive.
§Example
ⓘ
use google_cloud_vectorsearch_v1::model::import_data_objects_request::GcsImportConfig;
let x = ImportDataObjectsRequest::new().set_gcs_import(GcsImportConfig::default()/* use setters */);
assert!(x.gcs_import().is_some());Trait Implementations§
Source§impl Clone for ImportDataObjectsRequest
impl Clone for ImportDataObjectsRequest
Source§fn clone(&self) -> ImportDataObjectsRequest
fn clone(&self) -> ImportDataObjectsRequest
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 ImportDataObjectsRequest
impl Debug for ImportDataObjectsRequest
Source§impl Default for ImportDataObjectsRequest
impl Default for ImportDataObjectsRequest
Source§fn default() -> ImportDataObjectsRequest
fn default() -> ImportDataObjectsRequest
Returns the “default value” for a type. Read more
Source§impl Message for ImportDataObjectsRequest
impl Message for ImportDataObjectsRequest
Source§impl PartialEq for ImportDataObjectsRequest
impl PartialEq for ImportDataObjectsRequest
impl StructuralPartialEq for ImportDataObjectsRequest
Auto Trait Implementations§
impl Freeze for ImportDataObjectsRequest
impl RefUnwindSafe for ImportDataObjectsRequest
impl Send for ImportDataObjectsRequest
impl Sync for ImportDataObjectsRequest
impl Unpin for ImportDataObjectsRequest
impl UnsafeUnpin for ImportDataObjectsRequest
impl UnwindSafe for ImportDataObjectsRequest
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