#[non_exhaustive]pub struct ReadIndexDatapointsRequest {
pub index_endpoint: String,
pub deployed_index_id: String,
pub ids: Vec<String>,
/* private fields */
}Available on crate feature
match-service only.Expand description
The request message for MatchService.ReadIndexDatapoints.
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.index_endpoint: StringRequired. The name of the index endpoint.
Format:
projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}
deployed_index_id: StringThe ID of the DeployedIndex that will serve the request.
ids: Vec<String>IDs of the datapoints to be searched for.
Implementations§
Source§impl ReadIndexDatapointsRequest
impl ReadIndexDatapointsRequest
pub fn new() -> Self
Sourcepub fn set_index_endpoint<T: Into<String>>(self, v: T) -> Self
pub fn set_index_endpoint<T: Into<String>>(self, v: T) -> Self
Sets the value of index_endpoint.
§Example
ⓘ
let x = ReadIndexDatapointsRequest::new().set_index_endpoint("example");Sourcepub fn set_deployed_index_id<T: Into<String>>(self, v: T) -> Self
pub fn set_deployed_index_id<T: Into<String>>(self, v: T) -> Self
Sets the value of deployed_index_id.
§Example
ⓘ
let x = ReadIndexDatapointsRequest::new().set_deployed_index_id("example");Trait Implementations§
Source§impl Clone for ReadIndexDatapointsRequest
impl Clone for ReadIndexDatapointsRequest
Source§fn clone(&self) -> ReadIndexDatapointsRequest
fn clone(&self) -> ReadIndexDatapointsRequest
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 ReadIndexDatapointsRequest
impl Debug for ReadIndexDatapointsRequest
Source§impl Default for ReadIndexDatapointsRequest
impl Default for ReadIndexDatapointsRequest
Source§fn default() -> ReadIndexDatapointsRequest
fn default() -> ReadIndexDatapointsRequest
Returns the “default value” for a type. Read more
Source§impl Message for ReadIndexDatapointsRequest
impl Message for ReadIndexDatapointsRequest
impl StructuralPartialEq for ReadIndexDatapointsRequest
Auto Trait Implementations§
impl Freeze for ReadIndexDatapointsRequest
impl RefUnwindSafe for ReadIndexDatapointsRequest
impl Send for ReadIndexDatapointsRequest
impl Sync for ReadIndexDatapointsRequest
impl Unpin for ReadIndexDatapointsRequest
impl UnwindSafe for ReadIndexDatapointsRequest
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