#[non_exhaustive]pub struct ReadIndexDatapointsRequest {
pub index_endpoint: String,
pub deployed_index_id: String,
pub ids: Vec<String>,
/* private fields */
}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.
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.
Trait Implementations§
Source§impl Clone for ReadIndexDatapointsRequest
impl Clone for ReadIndexDatapointsRequest
Source§fn clone(&self) -> ReadIndexDatapointsRequest
fn clone(&self) -> ReadIndexDatapointsRequest
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 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<'de> Deserialize<'de> for ReadIndexDatapointsRequestwhere
ReadIndexDatapointsRequest: Default,
impl<'de> Deserialize<'de> for ReadIndexDatapointsRequestwhere
ReadIndexDatapointsRequest: 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 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