#[non_exhaustive]pub struct FetchFeatureValuesRequest {
pub feature_view: String,
pub data_key: Option<FeatureViewDataKey>,
pub data_format: FeatureViewDataFormat,
/* private fields */
}Expand description
Request message for FeatureOnlineStoreService.FetchFeatureValues. All the features under the requested feature view will be returned.
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_view: StringRequired. FeatureView resource format
projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}
data_key: Option<FeatureViewDataKey>Optional. The request key to fetch feature values for.
data_format: FeatureViewDataFormatOptional. Response data format. If not set, FeatureViewDataFormat.KEY_VALUE will be used.
Implementations§
Source§impl FetchFeatureValuesRequest
impl FetchFeatureValuesRequest
pub fn new() -> Self
Sourcepub fn set_feature_view<T: Into<String>>(self, v: T) -> Self
pub fn set_feature_view<T: Into<String>>(self, v: T) -> Self
Sets the value of feature_view.
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_data_format<T: Into<FeatureViewDataFormat>>(self, v: T) -> Self
pub fn set_data_format<T: Into<FeatureViewDataFormat>>(self, v: T) -> Self
Sets the value of data_format.
Trait Implementations§
Source§impl Clone for FetchFeatureValuesRequest
impl Clone for FetchFeatureValuesRequest
Source§fn clone(&self) -> FetchFeatureValuesRequest
fn clone(&self) -> FetchFeatureValuesRequest
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 FetchFeatureValuesRequest
impl Debug for FetchFeatureValuesRequest
Source§impl Default for FetchFeatureValuesRequest
impl Default for FetchFeatureValuesRequest
Source§fn default() -> FetchFeatureValuesRequest
fn default() -> FetchFeatureValuesRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FetchFeatureValuesRequestwhere
FetchFeatureValuesRequest: Default,
impl<'de> Deserialize<'de> for FetchFeatureValuesRequestwhere
FetchFeatureValuesRequest: 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 FetchFeatureValuesRequest
impl Message for FetchFeatureValuesRequest
impl StructuralPartialEq for FetchFeatureValuesRequest
Auto Trait Implementations§
impl Freeze for FetchFeatureValuesRequest
impl RefUnwindSafe for FetchFeatureValuesRequest
impl Send for FetchFeatureValuesRequest
impl Sync for FetchFeatureValuesRequest
impl Unpin for FetchFeatureValuesRequest
impl UnwindSafe for FetchFeatureValuesRequest
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