#[non_exhaustive]pub struct Header {
pub entity_type: String,
pub feature_descriptors: Vec<FeatureDescriptor>,
/* private fields */
}Available on crate feature
featurestore-online-serving-service only.Expand description
Response header with metadata for the requested ReadFeatureValuesRequest.entity_type and Features.
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: StringThe resource name of the EntityType from the
ReadFeatureValuesRequest.
Value format:
projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}.
feature_descriptors: Vec<FeatureDescriptor>List of Feature metadata corresponding to each piece of ReadFeatureValuesResponse.EntityView.data.
Implementations§
Source§impl Header
impl Header
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
Sourcepub fn set_feature_descriptors<T, V>(self, v: T) -> Self
pub fn set_feature_descriptors<T, V>(self, v: T) -> Self
Sets the value of feature_descriptors.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::read_feature_values_response::FeatureDescriptor;
let x = Header::new()
.set_feature_descriptors([
FeatureDescriptor::default()/* use setters */,
FeatureDescriptor::default()/* use (different) setters */,
]);Trait Implementations§
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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