#[non_exhaustive]pub struct FeatureRegistrySource {
pub feature_groups: Vec<FeatureGroup>,
pub project_number: Option<i64>,
/* private fields */
}Available on crate feature
feature-online-store-admin-service only.Expand description
A Feature Registry source for features that need to be synced to Online Store.
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.feature_groups: Vec<FeatureGroup>Required. List of features that need to be synced to Online Store.
project_number: Option<i64>Optional. The project number of the parent project of the Feature Groups.
Implementations§
Source§impl FeatureRegistrySource
impl FeatureRegistrySource
pub fn new() -> Self
Sourcepub fn set_feature_groups<T, V>(self, v: T) -> Self
pub fn set_feature_groups<T, V>(self, v: T) -> Self
Sets the value of feature_groups.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::feature_view::feature_registry_source::FeatureGroup;
let x = FeatureRegistrySource::new()
.set_feature_groups([
FeatureGroup::default()/* use setters */,
FeatureGroup::default()/* use (different) setters */,
]);Sourcepub fn set_project_number<T>(self, v: T) -> Self
pub fn set_project_number<T>(self, v: T) -> Self
Sets the value of project_number.
§Example
ⓘ
let x = FeatureRegistrySource::new().set_project_number(42);Sourcepub fn set_or_clear_project_number<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_project_number<T>(self, v: Option<T>) -> Self
Sets or clears the value of project_number.
§Example
ⓘ
let x = FeatureRegistrySource::new().set_or_clear_project_number(Some(42));
let x = FeatureRegistrySource::new().set_or_clear_project_number(None::<i32>);Trait Implementations§
Source§impl Clone for FeatureRegistrySource
impl Clone for FeatureRegistrySource
Source§fn clone(&self) -> FeatureRegistrySource
fn clone(&self) -> FeatureRegistrySource
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 FeatureRegistrySource
impl Debug for FeatureRegistrySource
Source§impl Default for FeatureRegistrySource
impl Default for FeatureRegistrySource
Source§fn default() -> FeatureRegistrySource
fn default() -> FeatureRegistrySource
Returns the “default value” for a type. Read more
Source§impl Message for FeatureRegistrySource
impl Message for FeatureRegistrySource
Source§impl PartialEq for FeatureRegistrySource
impl PartialEq for FeatureRegistrySource
impl StructuralPartialEq for FeatureRegistrySource
Auto Trait Implementations§
impl Freeze for FeatureRegistrySource
impl RefUnwindSafe for FeatureRegistrySource
impl Send for FeatureRegistrySource
impl Sync for FeatureRegistrySource
impl Unpin for FeatureRegistrySource
impl UnwindSafe for FeatureRegistrySource
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