#[non_exhaustive]pub struct Feature {
pub name: String,
pub description: String,
pub value_type: ValueType,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub etag: String,
pub disable_monitoring: bool,
pub monitoring_stats_anomalies: Vec<MonitoringStatsAnomaly>,
pub version_column_name: String,
pub point_of_contact: String,
/* private fields */
}Expand description
Feature Metadata information. For example, color is a feature that describes an apple.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringImmutable. Name of the Feature.
Format:
projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}
projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}
The last part feature is assigned by the client. The feature can be up to 64 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting with a letter. The value will be unique given an entity type.
description: StringDescription of the Feature.
value_type: ValueTypeImmutable. Only applicable for Vertex AI Feature Store (Legacy). Type of Feature value.
create_time: Option<Timestamp>Output only. Only applicable for Vertex AI Feature Store (Legacy). Timestamp when this EntityType was created.
update_time: Option<Timestamp>Output only. Only applicable for Vertex AI Feature Store (Legacy). Timestamp when this EntityType was most recently updated.
labels: HashMap<String, String>Optional. The labels with user-defined metadata to organize your Features.
Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed.
See https://goo.gl/xmQnxf for more information on and examples of labels. No more than 64 user labels can be associated with one Feature (System labels are excluded).“ System reserved label keys are prefixed with “aiplatform.googleapis.com/” and are immutable.
etag: StringUsed to perform a consistent read-modify-write updates. If not set, a blind “overwrite” update happens.
disable_monitoring: boolOptional. Only applicable for Vertex AI Feature Store (Legacy). If not set, use the monitoring_config defined for the EntityType this Feature belongs to. Only Features with type (Feature.ValueType) BOOL, STRING, DOUBLE or INT64 can enable monitoring.
If set to true, all types of data monitoring are disabled despite the config on EntityType.
monitoring_stats_anomalies: Vec<MonitoringStatsAnomaly>Output only. Only applicable for Vertex AI Feature Store (Legacy). The list of historical stats and anomalies with specified objectives.
version_column_name: StringOnly applicable for Vertex AI Feature Store. The name of the BigQuery Table/View column hosting data for this version. If no value is provided, will use feature_id.
point_of_contact: StringEntity responsible for maintaining this feature. Can be comma separated list of email addresses or URIs.
Implementations§
Source§impl Feature
impl Feature
pub fn new() -> Self
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_value_type<T: Into<ValueType>>(self, v: T) -> Self
pub fn set_value_type<T: Into<ValueType>>(self, v: T) -> Self
Sets the value of value_type.
Sourcepub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_disable_monitoring<T: Into<bool>>(self, v: T) -> Self
pub fn set_disable_monitoring<T: Into<bool>>(self, v: T) -> Self
Sets the value of disable_monitoring.
Sourcepub fn set_monitoring_stats_anomalies<T, V>(self, v: T) -> Self
pub fn set_monitoring_stats_anomalies<T, V>(self, v: T) -> Self
Sets the value of monitoring_stats_anomalies.
Sourcepub fn set_version_column_name<T: Into<String>>(self, v: T) -> Self
pub fn set_version_column_name<T: Into<String>>(self, v: T) -> Self
Sets the value of version_column_name.
Sourcepub fn set_point_of_contact<T: Into<String>>(self, v: T) -> Self
pub fn set_point_of_contact<T: Into<String>>(self, v: T) -> Self
Sets the value of point_of_contact.