pub struct GoogleCloudAiplatformV1IndexDatapoint {
pub sparse_embedding: Option<GoogleCloudAiplatformV1IndexDatapointSparseEmbedding>,
pub crowding_tag: Option<GoogleCloudAiplatformV1IndexDatapointCrowdingTag>,
pub numeric_restricts: Option<Vec<GoogleCloudAiplatformV1IndexDatapointNumericRestriction>>,
pub datapoint_id: Option<String>,
pub restricts: Option<Vec<GoogleCloudAiplatformV1IndexDatapointRestriction>>,
pub feature_vector: Option<Vec<f32>>,
}Expand description
A datapoint of Index.
This type is not used in any activity, and only used as part of another schema.
Fields§
§sparse_embedding: Option<GoogleCloudAiplatformV1IndexDatapointSparseEmbedding>Optional. Feature embedding vector for sparse index.
crowding_tag: Option<GoogleCloudAiplatformV1IndexDatapointCrowdingTag>Optional. CrowdingTag of the datapoint, the number of neighbors to return in each crowding can be configured during query.
numeric_restricts: Option<Vec<GoogleCloudAiplatformV1IndexDatapointNumericRestriction>>Optional. List of Restrict of the datapoint, used to perform “restricted searches” where boolean rule are used to filter the subset of the database eligible for matching. This uses numeric comparisons.
datapoint_id: Option<String>Required. Unique identifier of the datapoint.
restricts: Option<Vec<GoogleCloudAiplatformV1IndexDatapointRestriction>>Optional. List of Restrict of the datapoint, used to perform “restricted searches” where boolean rule are used to filter the subset of the database eligible for matching. This uses categorical tokens. See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
feature_vector: Option<Vec<f32>>Required. Feature embedding vector for dense index. An array of numbers with the length of [NearestNeighborSearchConfig.dimensions].
Trait Implementations§
Source§impl Clone for GoogleCloudAiplatformV1IndexDatapoint
impl Clone for GoogleCloudAiplatformV1IndexDatapoint
Source§fn clone(&self) -> GoogleCloudAiplatformV1IndexDatapoint
fn clone(&self) -> GoogleCloudAiplatformV1IndexDatapoint
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudAiplatformV1IndexDatapoint
impl Default for GoogleCloudAiplatformV1IndexDatapoint
Source§fn default() -> GoogleCloudAiplatformV1IndexDatapoint
fn default() -> GoogleCloudAiplatformV1IndexDatapoint
Source§impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1IndexDatapoint
impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1IndexDatapoint
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>,
impl Part for GoogleCloudAiplatformV1IndexDatapoint
Auto Trait Implementations§
impl Freeze for GoogleCloudAiplatformV1IndexDatapoint
impl RefUnwindSafe for GoogleCloudAiplatformV1IndexDatapoint
impl Send for GoogleCloudAiplatformV1IndexDatapoint
impl Sync for GoogleCloudAiplatformV1IndexDatapoint
impl Unpin for GoogleCloudAiplatformV1IndexDatapoint
impl UnwindSafe for GoogleCloudAiplatformV1IndexDatapoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more