#[non_exhaustive]pub struct WriteFeatureValuesRequest {
pub entity_type: String,
pub payloads: Vec<WriteFeatureValuesPayload>,
/* private fields */
}Available on crate feature
featurestore-online-serving-service only.Expand description
Request message for FeaturestoreOnlineServingService.WriteFeatureValues.
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_type: StringRequired. The resource name of the EntityType for the entities being
written. Value format:
projects/{project}/locations/{location}/featurestores/ {featurestore}/entityTypes/{entityType}. For example,
for a machine learning model predicting user clicks on a website, an
EntityType ID could be user.
payloads: Vec<WriteFeatureValuesPayload>Required. The entities to be written. Up to 100,000 feature values can be
written across all payloads.
Implementations§
Source§impl WriteFeatureValuesRequest
impl WriteFeatureValuesRequest
pub fn new() -> Self
Sourcepub fn set_entity_type<T: Into<String>>(self, v: T) -> Self
pub fn set_entity_type<T: Into<String>>(self, v: T) -> Self
Sets the value of entity_type.
§Example
ⓘ
let x = WriteFeatureValuesRequest::new().set_entity_type("example");Sourcepub fn set_payloads<T, V>(self, v: T) -> Self
pub fn set_payloads<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for WriteFeatureValuesRequest
impl Clone for WriteFeatureValuesRequest
Source§fn clone(&self) -> WriteFeatureValuesRequest
fn clone(&self) -> WriteFeatureValuesRequest
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 WriteFeatureValuesRequest
impl Debug for WriteFeatureValuesRequest
Source§impl Default for WriteFeatureValuesRequest
impl Default for WriteFeatureValuesRequest
Source§fn default() -> WriteFeatureValuesRequest
fn default() -> WriteFeatureValuesRequest
Returns the “default value” for a type. Read more
Source§impl Message for WriteFeatureValuesRequest
impl Message for WriteFeatureValuesRequest
impl StructuralPartialEq for WriteFeatureValuesRequest
Auto Trait Implementations§
impl Freeze for WriteFeatureValuesRequest
impl RefUnwindSafe for WriteFeatureValuesRequest
impl Send for WriteFeatureValuesRequest
impl Sync for WriteFeatureValuesRequest
impl Unpin for WriteFeatureValuesRequest
impl UnwindSafe for WriteFeatureValuesRequest
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