#[non_exhaustive]pub struct ListDataStoresRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub filter: String,
/* private fields */
}data-store-service only.Expand description
Request message for DataStoreService.ListDataStores method.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The parent branch resource name, such as
projects/{project}/locations/{location}/collections/{collection_id}.
If the caller does not have permission to list DataStores under this location, regardless of whether or not this data store exists, a PERMISSION_DENIED error is returned.
page_size: i32Maximum number of DataStores to return. If unspecified, defaults to 10. The maximum allowed value is 50. Values above 50 will be coerced to 50.
If this field is negative, an INVALID_ARGUMENT is returned.
page_token: StringA page token ListDataStoresResponse.next_page_token, received from a previous DataStoreService.ListDataStores call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to DataStoreService.ListDataStores must match the call that provided the page token. Otherwise, an INVALID_ARGUMENT error is returned.
filter: StringFilter by solution type .
For example: filter = 'solution_type:SOLUTION_TYPE_SEARCH'
Implementations§
Source§impl ListDataStoresRequest
impl ListDataStoresRequest
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
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.
§Example
let x = ListDataStoresRequest::new().set_page_token("example");Trait Implementations§
Source§impl Clone for ListDataStoresRequest
impl Clone for ListDataStoresRequest
Source§fn clone(&self) -> ListDataStoresRequest
fn clone(&self) -> ListDataStoresRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ListDataStoresRequest
impl Debug for ListDataStoresRequest
Source§impl Default for ListDataStoresRequest
impl Default for ListDataStoresRequest
Source§fn default() -> ListDataStoresRequest
fn default() -> ListDataStoresRequest
Source§impl Message for ListDataStoresRequest
impl Message for ListDataStoresRequest
Source§impl PartialEq for ListDataStoresRequest
impl PartialEq for ListDataStoresRequest
impl StructuralPartialEq for ListDataStoresRequest
Auto Trait Implementations§
impl Freeze for ListDataStoresRequest
impl RefUnwindSafe for ListDataStoresRequest
impl Send for ListDataStoresRequest
impl Sync for ListDataStoresRequest
impl Unpin for ListDataStoresRequest
impl UnsafeUnpin for ListDataStoresRequest
impl UnwindSafe for ListDataStoresRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request