#[non_exhaustive]pub struct CreateFeatureGroupRequest {
pub parent: String,
pub feature_group: Option<FeatureGroup>,
pub feature_group_id: String,
/* private fields */
}Expand description
Request message for FeatureRegistryService.CreateFeatureGroup.
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.parent: StringRequired. The resource name of the Location to create FeatureGroups.
Format:
projects/{project}/locations/{location}
feature_group: Option<FeatureGroup>Required. The FeatureGroup to create.
feature_group_id: StringRequired. The ID to use for this FeatureGroup, which will become the final component of the FeatureGroup’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 the project and location.
Implementations§
Source§impl CreateFeatureGroupRequest
impl CreateFeatureGroupRequest
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_group<T: Into<Option<FeatureGroup>>>(self, v: T) -> Self
pub fn set_feature_group<T: Into<Option<FeatureGroup>>>(self, v: T) -> Self
Sets the value of feature_group.
Sourcepub fn set_feature_group_id<T: Into<String>>(self, v: T) -> Self
pub fn set_feature_group_id<T: Into<String>>(self, v: T) -> Self
Sets the value of feature_group_id.
Trait Implementations§
Source§impl Clone for CreateFeatureGroupRequest
impl Clone for CreateFeatureGroupRequest
Source§fn clone(&self) -> CreateFeatureGroupRequest
fn clone(&self) -> CreateFeatureGroupRequest
Returns a copy 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 CreateFeatureGroupRequest
impl Debug for CreateFeatureGroupRequest
Source§impl Default for CreateFeatureGroupRequest
impl Default for CreateFeatureGroupRequest
Source§fn default() -> CreateFeatureGroupRequest
fn default() -> CreateFeatureGroupRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateFeatureGroupRequestwhere
CreateFeatureGroupRequest: Default,
impl<'de> Deserialize<'de> for CreateFeatureGroupRequestwhere
CreateFeatureGroupRequest: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for CreateFeatureGroupRequest
impl Message for CreateFeatureGroupRequest
impl StructuralPartialEq for CreateFeatureGroupRequest
Auto Trait Implementations§
impl Freeze for CreateFeatureGroupRequest
impl RefUnwindSafe for CreateFeatureGroupRequest
impl Send for CreateFeatureGroupRequest
impl Sync for CreateFeatureGroupRequest
impl Unpin for CreateFeatureGroupRequest
impl UnwindSafe for CreateFeatureGroupRequest
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