#[non_exhaustive]pub struct ReadFeatureValuesResponse {
pub header: Option<Header>,
pub entity_view: Option<EntityView>,
/* private fields */
}Available on crate feature
featurestore-online-serving-service only.Expand description
Response message for FeaturestoreOnlineServingService.ReadFeatureValues.
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.header: Option<Header>Response header.
entity_view: Option<EntityView>Entity view with Feature values. This may be the entity in the Featurestore if values for all Features were requested, or a projection of the entity in the Featurestore if values for only some Features were requested.
Implementations§
Source§impl ReadFeatureValuesResponse
impl ReadFeatureValuesResponse
pub fn new() -> Self
Sourcepub fn set_header<T>(self, v: T) -> Self
pub fn set_header<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_header<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_header<T>(self, v: Option<T>) -> Self
Sets or clears the value of header.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::read_feature_values_response::Header;
let x = ReadFeatureValuesResponse::new().set_or_clear_header(Some(Header::default()/* use setters */));
let x = ReadFeatureValuesResponse::new().set_or_clear_header(None::<Header>);Sourcepub fn set_entity_view<T>(self, v: T) -> Selfwhere
T: Into<EntityView>,
pub fn set_entity_view<T>(self, v: T) -> Selfwhere
T: Into<EntityView>,
Sets the value of entity_view.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::read_feature_values_response::EntityView;
let x = ReadFeatureValuesResponse::new().set_entity_view(EntityView::default()/* use setters */);Sourcepub fn set_or_clear_entity_view<T>(self, v: Option<T>) -> Selfwhere
T: Into<EntityView>,
pub fn set_or_clear_entity_view<T>(self, v: Option<T>) -> Selfwhere
T: Into<EntityView>,
Sets or clears the value of entity_view.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::read_feature_values_response::EntityView;
let x = ReadFeatureValuesResponse::new().set_or_clear_entity_view(Some(EntityView::default()/* use setters */));
let x = ReadFeatureValuesResponse::new().set_or_clear_entity_view(None::<EntityView>);Trait Implementations§
Source§impl Clone for ReadFeatureValuesResponse
impl Clone for ReadFeatureValuesResponse
Source§fn clone(&self) -> ReadFeatureValuesResponse
fn clone(&self) -> ReadFeatureValuesResponse
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 ReadFeatureValuesResponse
impl Debug for ReadFeatureValuesResponse
Source§impl Default for ReadFeatureValuesResponse
impl Default for ReadFeatureValuesResponse
Source§fn default() -> ReadFeatureValuesResponse
fn default() -> ReadFeatureValuesResponse
Returns the “default value” for a type. Read more
Source§impl Message for ReadFeatureValuesResponse
impl Message for ReadFeatureValuesResponse
impl StructuralPartialEq for ReadFeatureValuesResponse
Auto Trait Implementations§
impl Freeze for ReadFeatureValuesResponse
impl RefUnwindSafe for ReadFeatureValuesResponse
impl Send for ReadFeatureValuesResponse
impl Sync for ReadFeatureValuesResponse
impl Unpin for ReadFeatureValuesResponse
impl UnwindSafe for ReadFeatureValuesResponse
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