#[non_exhaustive]pub struct FindNeighborsResponse {
pub nearest_neighbors: Vec<NearestNeighbors>,
/* private fields */
}Available on crate feature
match-service only.Expand description
The response message for MatchService.FindNeighbors.
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.nearest_neighbors: Vec<NearestNeighbors>The nearest neighbors of the query datapoints.
Implementations§
Source§impl FindNeighborsResponse
impl FindNeighborsResponse
pub fn new() -> Self
Sourcepub fn set_nearest_neighbors<T, V>(self, v: T) -> Self
pub fn set_nearest_neighbors<T, V>(self, v: T) -> Self
Sets the value of nearest_neighbors.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::find_neighbors_response::NearestNeighbors;
let x = FindNeighborsResponse::new()
.set_nearest_neighbors([
NearestNeighbors::default()/* use setters */,
NearestNeighbors::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for FindNeighborsResponse
impl Clone for FindNeighborsResponse
Source§fn clone(&self) -> FindNeighborsResponse
fn clone(&self) -> FindNeighborsResponse
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 FindNeighborsResponse
impl Debug for FindNeighborsResponse
Source§impl Default for FindNeighborsResponse
impl Default for FindNeighborsResponse
Source§fn default() -> FindNeighborsResponse
fn default() -> FindNeighborsResponse
Returns the “default value” for a type. Read more
Source§impl Message for FindNeighborsResponse
impl Message for FindNeighborsResponse
Source§impl PartialEq for FindNeighborsResponse
impl PartialEq for FindNeighborsResponse
impl StructuralPartialEq for FindNeighborsResponse
Auto Trait Implementations§
impl Freeze for FindNeighborsResponse
impl RefUnwindSafe for FindNeighborsResponse
impl Send for FindNeighborsResponse
impl Sync for FindNeighborsResponse
impl Unpin for FindNeighborsResponse
impl UnwindSafe for FindNeighborsResponse
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