#[non_exhaustive]pub struct MigrateDataLabelingDatasetConfig {
pub dataset: String,
pub dataset_display_name: String,
pub migrate_data_labeling_annotated_dataset_configs: Vec<MigrateDataLabelingAnnotatedDatasetConfig>,
/* private fields */
}Available on crate feature
migration-service only.Expand description
Config for migrating Dataset in datalabeling.googleapis.com to Vertex AI’s Dataset.
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.dataset: StringRequired. Full resource name of data labeling Dataset.
Format:
projects/{project}/datasets/{dataset}.
dataset_display_name: StringOptional. Display name of the Dataset in Vertex AI. System will pick a display name if unspecified.
migrate_data_labeling_annotated_dataset_configs: Vec<MigrateDataLabelingAnnotatedDatasetConfig>Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to Vertex AI’s SavedQuery. The specified AnnotatedDatasets have to belong to the datalabeling Dataset.
Implementations§
Source§impl MigrateDataLabelingDatasetConfig
impl MigrateDataLabelingDatasetConfig
pub fn new() -> Self
Sourcepub fn set_dataset<T: Into<String>>(self, v: T) -> Self
pub fn set_dataset<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_dataset_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_dataset_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of dataset_display_name.
§Example
ⓘ
let x = MigrateDataLabelingDatasetConfig::new().set_dataset_display_name("example");Sourcepub fn set_migrate_data_labeling_annotated_dataset_configs<T, V>(
self,
v: T,
) -> Self
pub fn set_migrate_data_labeling_annotated_dataset_configs<T, V>( self, v: T, ) -> Self
Sets the value of migrate_data_labeling_annotated_dataset_configs.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::migrate_resource_request::migrate_data_labeling_dataset_config::MigrateDataLabelingAnnotatedDatasetConfig;
let x = MigrateDataLabelingDatasetConfig::new()
.set_migrate_data_labeling_annotated_dataset_configs([
MigrateDataLabelingAnnotatedDatasetConfig::default()/* use setters */,
MigrateDataLabelingAnnotatedDatasetConfig::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for MigrateDataLabelingDatasetConfig
impl Clone for MigrateDataLabelingDatasetConfig
Source§fn clone(&self) -> MigrateDataLabelingDatasetConfig
fn clone(&self) -> MigrateDataLabelingDatasetConfig
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 MigrateDataLabelingDatasetConfig
impl Default for MigrateDataLabelingDatasetConfig
Source§fn default() -> MigrateDataLabelingDatasetConfig
fn default() -> MigrateDataLabelingDatasetConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for MigrateDataLabelingDatasetConfig
impl PartialEq for MigrateDataLabelingDatasetConfig
Source§fn eq(&self, other: &MigrateDataLabelingDatasetConfig) -> bool
fn eq(&self, other: &MigrateDataLabelingDatasetConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MigrateDataLabelingDatasetConfig
Auto Trait Implementations§
impl Freeze for MigrateDataLabelingDatasetConfig
impl RefUnwindSafe for MigrateDataLabelingDatasetConfig
impl Send for MigrateDataLabelingDatasetConfig
impl Sync for MigrateDataLabelingDatasetConfig
impl Unpin for MigrateDataLabelingDatasetConfig
impl UnwindSafe for MigrateDataLabelingDatasetConfig
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