pub struct SearchDataObjects(/* private fields */);Expand description
The request builder for DataObjectSearchService::search_data_objects calls.
§Example
use google_cloud_gax::paginator::ItemPaginator;
let builder = prepare_request_builder();
let mut items = builder.by_item();
while let Some(result) = items.next().await {
let item = result?;
}
fn prepare_request_builder() -> SearchDataObjects {
// ... details omitted ...
}Implementations§
Source§impl SearchDataObjects
impl SearchDataObjects
Sourcepub fn with_request<V: Into<SearchDataObjectsRequest>>(self, v: V) -> Self
pub fn with_request<V: Into<SearchDataObjectsRequest>>(self, v: V) -> Self
Sets the full request, replacing any prior values.
Sourcepub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
pub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
Sets all the options, replacing any prior values.
Sourcepub async fn send(self) -> Result<SearchDataObjectsResponse>
pub async fn send(self) -> Result<SearchDataObjectsResponse>
Sends the request.
Sourcepub fn by_page(self) -> impl Paginator<SearchDataObjectsResponse, Error>
pub fn by_page(self) -> impl Paginator<SearchDataObjectsResponse, Error>
Streams each page in the collection.
Sourcepub fn by_item(self) -> impl ItemPaginator<SearchDataObjectsResponse, Error>
pub fn by_item(self) -> impl ItemPaginator<SearchDataObjectsResponse, Error>
Streams each item in the collection.
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
This is a required field for requests.
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sets the value of page_size.
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of page_token.
Sourcepub fn set_search_type<T: Into<Option<SearchType>>>(self, v: T) -> Self
pub fn set_search_type<T: Into<Option<SearchType>>>(self, v: T) -> Self
Sets the value of search_type.
Note that all the setters affecting search_type are
mutually exclusive.
Sourcepub fn set_vector_search<T: Into<Box<VectorSearch>>>(self, v: T) -> Self
pub fn set_vector_search<T: Into<Box<VectorSearch>>>(self, v: T) -> Self
Sets the value of search_type
to hold a VectorSearch.
Note that all the setters affecting search_type are
mutually exclusive.
Sourcepub fn set_semantic_search<T: Into<Box<SemanticSearch>>>(self, v: T) -> Self
pub fn set_semantic_search<T: Into<Box<SemanticSearch>>>(self, v: T) -> Self
Sets the value of search_type
to hold a SemanticSearch.
Note that all the setters affecting search_type are
mutually exclusive.
Sourcepub fn set_text_search<T: Into<Box<TextSearch>>>(self, v: T) -> Self
pub fn set_text_search<T: Into<Box<TextSearch>>>(self, v: T) -> Self
Sets the value of search_type
to hold a TextSearch.
Note that all the setters affecting search_type are
mutually exclusive.
Trait Implementations§
Source§impl Clone for SearchDataObjects
impl Clone for SearchDataObjects
Source§fn clone(&self) -> SearchDataObjects
fn clone(&self) -> SearchDataObjects
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SearchDataObjects
impl !RefUnwindSafe for SearchDataObjects
impl Send for SearchDataObjects
impl Sync for SearchDataObjects
impl Unpin for SearchDataObjects
impl UnsafeUnpin for SearchDataObjects
impl !UnwindSafe for SearchDataObjects
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
Source§fn with_idempotency(self, v: bool) -> T
fn with_idempotency(self, v: bool) -> T
v is true, treat the RPC underlying this method as idempotent.