#[non_exhaustive]pub struct CreateFeatureRequest {
pub parent: String,
pub feature: Option<Feature>,
pub feature_id: String,
/* private fields */
}feature-registry-service or featurestore-service only.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
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_feature<T>(self, v: T) -> Self
pub fn set_feature<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_feature<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_feature<T>(self, v: Option<T>) -> Self
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.
§Example
let x = CreateFeatureRequest::new().set_feature_id("example");Trait Implementations§
Source§impl Clone for CreateFeatureRequest
impl Clone for CreateFeatureRequest
Source§fn clone(&self) -> CreateFeatureRequest
fn clone(&self) -> CreateFeatureRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateFeatureRequest
impl Debug for CreateFeatureRequest
Source§impl Default for CreateFeatureRequest
impl Default for CreateFeatureRequest
Source§fn default() -> CreateFeatureRequest
fn default() -> CreateFeatureRequest
Source§impl Message for CreateFeatureRequest
impl Message for CreateFeatureRequest
Source§impl PartialEq for CreateFeatureRequest
impl PartialEq for CreateFeatureRequest
impl StructuralPartialEq for CreateFeatureRequest
Auto Trait Implementations§
impl Freeze for CreateFeatureRequest
impl RefUnwindSafe for CreateFeatureRequest
impl Send for CreateFeatureRequest
impl Sync for CreateFeatureRequest
impl Unpin for CreateFeatureRequest
impl UnsafeUnpin for CreateFeatureRequest
impl UnwindSafe for CreateFeatureRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request