#[non_exhaustive]pub struct FetchFeatureValuesResponse {
pub data_key: Option<FeatureViewDataKey>,
pub format: Option<Format>,
/* private fields */
}Expand description
Response message for FeatureOnlineStoreService.FetchFeatureValues
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.data_key: Option<FeatureViewDataKey>The data key associated with this response. Will only be populated for [FeatureOnlineStoreService.StreamingFetchFeatureValues][] RPCs.
format: Option<Format>Implementations§
Source§impl FetchFeatureValuesResponse
impl FetchFeatureValuesResponse
pub fn new() -> Self
Sourcepub fn set_data_key<T: Into<Option<FeatureViewDataKey>>>(self, v: T) -> Self
pub fn set_data_key<T: Into<Option<FeatureViewDataKey>>>(self, v: T) -> Self
Sets the value of data_key.
Sourcepub fn set_format<T: Into<Option<Format>>>(self, v: T) -> Self
pub fn set_format<T: Into<Option<Format>>>(self, v: T) -> Self
Sets the value of format.
Note that all the setters affecting format are mutually
exclusive.
Sourcepub fn key_values(&self) -> Option<&Box<FeatureNameValuePairList>>
pub fn key_values(&self) -> Option<&Box<FeatureNameValuePairList>>
The value of format
if it holds a KeyValues, None if the field is not set or
holds a different branch.
Sourcepub fn set_key_values<T: Into<Box<FeatureNameValuePairList>>>(
self,
v: T,
) -> Self
pub fn set_key_values<T: Into<Box<FeatureNameValuePairList>>>( self, v: T, ) -> Self
Sets the value of format
to hold a KeyValues.
Note that all the setters affecting format are
mutually exclusive.
Trait Implementations§
Source§impl Clone for FetchFeatureValuesResponse
impl Clone for FetchFeatureValuesResponse
Source§fn clone(&self) -> FetchFeatureValuesResponse
fn clone(&self) -> FetchFeatureValuesResponse
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 FetchFeatureValuesResponse
impl Debug for FetchFeatureValuesResponse
Source§impl Default for FetchFeatureValuesResponse
impl Default for FetchFeatureValuesResponse
Source§fn default() -> FetchFeatureValuesResponse
fn default() -> FetchFeatureValuesResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FetchFeatureValuesResponsewhere
FetchFeatureValuesResponse: Default,
impl<'de> Deserialize<'de> for FetchFeatureValuesResponsewhere
FetchFeatureValuesResponse: 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 FetchFeatureValuesResponse
impl Message for FetchFeatureValuesResponse
impl StructuralPartialEq for FetchFeatureValuesResponse
Auto Trait Implementations§
impl Freeze for FetchFeatureValuesResponse
impl RefUnwindSafe for FetchFeatureValuesResponse
impl Send for FetchFeatureValuesResponse
impl Sync for FetchFeatureValuesResponse
impl Unpin for FetchFeatureValuesResponse
impl UnwindSafe for FetchFeatureValuesResponse
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