#[non_exhaustive]pub struct CreateFeatureRequest {
pub parent: String,
pub feature: Option<Feature>,
pub feature_id: String,
/* private fields */
}Expand description
Request message for FeaturestoreService.CreateFeature. Request message for FeatureRegistryService.CreateFeature.
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.parent: StringRequired. The resource name of the EntityType or FeatureGroup to create a
Feature. Format for entity_type as parent:
projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}
Format for feature_group as parent:
projects/{project}/locations/{location}/featureGroups/{feature_group}
feature: Option<Feature>Required. The Feature to create.
feature_id: StringRequired. The ID to use for the Feature, which will become the final component of the Feature’s resource name.
This value may be up to 128 characters, and valid characters are
[a-z0-9_]. The first character cannot be a number.
The value must be unique within an EntityType/FeatureGroup.
Implementations§
Source§impl CreateFeatureRequest
impl CreateFeatureRequest
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
Sets the value of parent.
Sourcepub fn set_feature_id<T: Into<String>>(self, v: T) -> Self
pub fn set_feature_id<T: Into<String>>(self, v: T) -> Self
Sets the value of feature_id.
Trait Implementations§
Source§impl Clone for CreateFeatureRequest
impl Clone for CreateFeatureRequest
Source§fn clone(&self) -> CreateFeatureRequest
fn clone(&self) -> CreateFeatureRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more