#[non_exhaustive]pub struct SearchNearestEntitiesRequest {
pub feature_view: String,
pub query: Option<NearestNeighborQuery>,
pub return_full_entity: bool,
/* private fields */
}Expand description
The request message for FeatureOnlineStoreService.SearchNearestEntities.
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}
query: Option<NearestNeighborQuery>Required. The query.
return_full_entity: boolOptional. If set to true, the full entities (including all vector values and metadata) of the nearest neighbors are returned; otherwise only entity id of the nearest neighbors will be returned. Note that returning full entities will significantly increase the latency and cost of the query.
Implementations§
Source§impl SearchNearestEntitiesRequest
impl SearchNearestEntitiesRequest
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_query<T: Into<Option<NearestNeighborQuery>>>(self, v: T) -> Self
pub fn set_query<T: Into<Option<NearestNeighborQuery>>>(self, v: T) -> Self
Sets the value of query.
Sourcepub fn set_return_full_entity<T: Into<bool>>(self, v: T) -> Self
pub fn set_return_full_entity<T: Into<bool>>(self, v: T) -> Self
Sets the value of return_full_entity.
Trait Implementations§
Source§impl Clone for SearchNearestEntitiesRequest
impl Clone for SearchNearestEntitiesRequest
Source§fn clone(&self) -> SearchNearestEntitiesRequest
fn clone(&self) -> SearchNearestEntitiesRequest
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 SearchNearestEntitiesRequest
impl Debug for SearchNearestEntitiesRequest
Source§impl Default for SearchNearestEntitiesRequest
impl Default for SearchNearestEntitiesRequest
Source§fn default() -> SearchNearestEntitiesRequest
fn default() -> SearchNearestEntitiesRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SearchNearestEntitiesRequestwhere
SearchNearestEntitiesRequest: Default,
impl<'de> Deserialize<'de> for SearchNearestEntitiesRequestwhere
SearchNearestEntitiesRequest: 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 PartialEq for SearchNearestEntitiesRequest
impl PartialEq for SearchNearestEntitiesRequest
Source§fn eq(&self, other: &SearchNearestEntitiesRequest) -> bool
fn eq(&self, other: &SearchNearestEntitiesRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SearchNearestEntitiesRequest
Auto Trait Implementations§
impl Freeze for SearchNearestEntitiesRequest
impl RefUnwindSafe for SearchNearestEntitiesRequest
impl Send for SearchNearestEntitiesRequest
impl Sync for SearchNearestEntitiesRequest
impl Unpin for SearchNearestEntitiesRequest
impl UnwindSafe for SearchNearestEntitiesRequest
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