#[non_exhaustive]pub struct FeatureViewDataKey {
pub key_oneof: Option<KeyOneof>,
/* private fields */
}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
Sets the value of key_oneof.
Note that all the setters affecting key_oneof are mutually
exclusive.
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 set_key<T: Into<String>>(self, v: T) -> Self
pub fn set_key<T: Into<String>>(self, v: T) -> Self
Sets the value of key_oneof
to hold a Key.
Note that all the setters affecting key_oneof are
mutually exclusive.
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.
Trait Implementations§
Source§impl Clone for FeatureViewDataKey
impl Clone for FeatureViewDataKey
Source§fn clone(&self) -> FeatureViewDataKey
fn clone(&self) -> FeatureViewDataKey
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 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<'de> Deserialize<'de> for FeatureViewDataKeywhere
FeatureViewDataKey: Default,
impl<'de> Deserialize<'de> for FeatureViewDataKeywhere
FeatureViewDataKey: 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 FeatureViewDataKey
impl Message for FeatureViewDataKey
Source§impl PartialEq for FeatureViewDataKey
impl PartialEq for FeatureViewDataKey
Source§impl Serialize for FeatureViewDataKey
impl Serialize 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