#[non_exhaustive]pub struct WriteFeatureValuesPayload {
pub entity_id: String,
pub feature_values: HashMap<String, FeatureValue>,
/* private fields */
}Available on crate feature
featurestore-online-serving-service only.Expand description
Contains Feature values to be written for a specific entity.
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.entity_id: StringRequired. The ID of the entity.
feature_values: HashMap<String, FeatureValue>Required. Feature values to be written, mapping from Feature ID to value.
Up to 100,000 feature_values entries may be written across all payloads.
The feature generation time, aligned by days, must be no older than five
years (1825 days) and no later than one year (366 days) in the future.
Implementations§
Source§impl WriteFeatureValuesPayload
impl WriteFeatureValuesPayload
pub fn new() -> Self
Sourcepub fn set_entity_id<T: Into<String>>(self, v: T) -> Self
pub fn set_entity_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_feature_values<T, K, V>(self, v: T) -> Self
pub fn set_feature_values<T, K, V>(self, v: T) -> Self
Sets the value of feature_values.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::FeatureValue;
let x = WriteFeatureValuesPayload::new().set_feature_values([
("key0", FeatureValue::default()/* use setters */),
("key1", FeatureValue::default()/* use (different) setters */),
]);Trait Implementations§
Source§impl Clone for WriteFeatureValuesPayload
impl Clone for WriteFeatureValuesPayload
Source§fn clone(&self) -> WriteFeatureValuesPayload
fn clone(&self) -> WriteFeatureValuesPayload
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 WriteFeatureValuesPayload
impl Debug for WriteFeatureValuesPayload
Source§impl Default for WriteFeatureValuesPayload
impl Default for WriteFeatureValuesPayload
Source§fn default() -> WriteFeatureValuesPayload
fn default() -> WriteFeatureValuesPayload
Returns the “default value” for a type. Read more
Source§impl Message for WriteFeatureValuesPayload
impl Message for WriteFeatureValuesPayload
impl StructuralPartialEq for WriteFeatureValuesPayload
Auto Trait Implementations§
impl Freeze for WriteFeatureValuesPayload
impl RefUnwindSafe for WriteFeatureValuesPayload
impl Send for WriteFeatureValuesPayload
impl Sync for WriteFeatureValuesPayload
impl Unpin for WriteFeatureValuesPayload
impl UnwindSafe for WriteFeatureValuesPayload
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