#[non_exhaustive]pub struct SearchFoldersRequest {
pub page_size: i32,
pub page_token: String,
pub query: String,
}Expand description
The request message for searching folders.
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.page_size: i32Optional. The maximum number of folders to return in the response. The server can return fewer folders than requested. If unspecified, server picks an appropriate default.
page_token: StringOptional. A pagination token returned from a previous call to
SearchFolders that indicates from where search should continue.
query: StringOptional. Search criteria used to select the folders to return. If no search criteria is specified then all accessible folders will be returned.
Query expressions can be used to restrict results based upon displayName,
state and parent, where the operators = (:) NOT, AND and OR
can be used along with the suffix wildcard symbol *.
The displayName field in a query expression should use escaped quotes
for values that include whitespace to prevent unexpected behavior.
| Field | Description |
|-------------------------|----------------------------------------|
| displayName | Filters by displayName. |
| parent | Filters by parent (for example: folders/123). |
| state, lifecycleState | Filters by state. |Some example queries are:
- Query
displayName=Test*returns Folder resources whose display name starts with “Test”. - Query
state=ACTIVEreturns Folder resources withstateset toACTIVE. - Query
parent=folders/123returns Folder resources that havefolders/123as a parent resource. - Query
parent=folders/123 AND state=ACTIVEreturns active Folder resources that havefolders/123as a parent resource. - Query
displayName=\\"Test String\\"returns Folder resources with display names that include both “Test” and “String”.
Implementations§
Source§impl SearchFoldersRequest
impl SearchFoldersRequest
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.
Trait Implementations§
Source§impl Clone for SearchFoldersRequest
impl Clone for SearchFoldersRequest
Source§fn clone(&self) -> SearchFoldersRequest
fn clone(&self) -> SearchFoldersRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more