#[non_exhaustive]pub struct CreateFeatureGroupRequest {
pub parent: String,
pub feature_group: Option<FeatureGroup>,
pub feature_group_id: String,
/* private fields */
}Available on crate feature
feature-registry-service only.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
Sourcepub fn set_feature_group<T>(self, v: T) -> Selfwhere
T: Into<FeatureGroup>,
pub fn set_feature_group<T>(self, v: T) -> Selfwhere
T: Into<FeatureGroup>,
Sets the value of feature_group.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::FeatureGroup;
let x = CreateFeatureGroupRequest::new().set_feature_group(FeatureGroup::default()/* use setters */);Sourcepub fn set_or_clear_feature_group<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureGroup>,
pub fn set_or_clear_feature_group<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureGroup>,
Sets or clears the value of feature_group.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::FeatureGroup;
let x = CreateFeatureGroupRequest::new().set_or_clear_feature_group(Some(FeatureGroup::default()/* use setters */));
let x = CreateFeatureGroupRequest::new().set_or_clear_feature_group(None::<FeatureGroup>);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.
§Example
ⓘ
let x = CreateFeatureGroupRequest::new().set_feature_group_id("example");Trait Implementations§
Source§impl Clone for CreateFeatureGroupRequest
impl Clone for CreateFeatureGroupRequest
Source§fn clone(&self) -> CreateFeatureGroupRequest
fn clone(&self) -> CreateFeatureGroupRequest
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 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 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