#[non_exhaustive]pub struct FeatureViewDataKey {
pub key_oneof: Option<KeyOneof>,
/* private fields */
}Available on crate feature
feature-online-store-service only.Expand description
Lookup key for a feature view.
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.key_oneof: Option<KeyOneof>Implementations§
Source§impl FeatureViewDataKey
impl FeatureViewDataKey
pub fn new() -> Self
Sourcepub fn set_key_oneof<T: Into<Option<KeyOneof>>>(self, v: T) -> Self
pub fn set_key_oneof<T: Into<Option<KeyOneof>>>(self, v: T) -> Self
Sourcepub fn key(&self) -> Option<&String>
pub fn key(&self) -> Option<&String>
The value of key_oneof
if it holds a Key, None if the field is not set or
holds a different branch.
Sourcepub fn composite_key(&self) -> Option<&Box<CompositeKey>>
pub fn composite_key(&self) -> Option<&Box<CompositeKey>>
The value of key_oneof
if it holds a CompositeKey, None if the field is not set or
holds a different branch.
Sourcepub fn set_composite_key<T: Into<Box<CompositeKey>>>(self, v: T) -> Self
pub fn set_composite_key<T: Into<Box<CompositeKey>>>(self, v: T) -> Self
Sets the value of key_oneof
to hold a CompositeKey.
Note that all the setters affecting key_oneof are
mutually exclusive.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::feature_view_data_key::CompositeKey;
let x = FeatureViewDataKey::new().set_composite_key(CompositeKey::default()/* use setters */);
assert!(x.composite_key().is_some());
assert!(x.key().is_none());Trait Implementations§
Source§impl Clone for FeatureViewDataKey
impl Clone for FeatureViewDataKey
Source§fn clone(&self) -> FeatureViewDataKey
fn clone(&self) -> FeatureViewDataKey
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 FeatureViewDataKey
impl Debug for FeatureViewDataKey
Source§impl Default for FeatureViewDataKey
impl Default for FeatureViewDataKey
Source§fn default() -> FeatureViewDataKey
fn default() -> FeatureViewDataKey
Returns the “default value” for a type. Read more
Source§impl Message for FeatureViewDataKey
impl Message for FeatureViewDataKey
Source§impl PartialEq for FeatureViewDataKey
impl PartialEq for FeatureViewDataKey
impl StructuralPartialEq for FeatureViewDataKey
Auto Trait Implementations§
impl Freeze for FeatureViewDataKey
impl RefUnwindSafe for FeatureViewDataKey
impl Send for FeatureViewDataKey
impl Sync for FeatureViewDataKey
impl Unpin for FeatureViewDataKey
impl UnwindSafe for FeatureViewDataKey
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